getConfigString method
Gets the string value for the given key
.
The config service will do its best to handle the string appropriately,
but all attempts should be made to validate that the returned value is,
indeed, a fully formed string. If no value is provided in the config the
defaultValue
will be chosen.
Implementation
Future<String> getConfigString(String key, String defaultValue) async {
if (configAgent != null) {
String value = await configAgent!.getConfigString(key, defaultValue);
return value;
}
return defaultValue;
}