Add function tests

This commit is contained in:
2021-03-24 13:34:03 +07:00
parent 57f3cd483e
commit 77a4f6064f
5 changed files with 339 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
abstract class ConfigurationProvider {
bool containsKey(String key);
String? getOrNull(String key, {String? defaultValue});
}
}

View File

@@ -21,6 +21,6 @@ class SystemConfig {
}
static String? getOrNull(String key, {String? defaultValue}) {
return getProvider().getOrNull(key);
return getProvider().getOrNull(key, defaultValue: defaultValue);
}
}