remoteConfigGetString method
Future<String>
remoteConfigGetString(
- String key,
- String defaultValue, {
- HackleUser? user,
override
Implementation
@override
Future<String> remoteConfigGetString(
String key,
String defaultValue, {
HackleUser? user,
}) async {
try {
final Map<String, Object?> arguments = {
Argument.remoteConfigKey.value: key,
Argument.remoteConfigDefaultValue.value: defaultValue,
Argument.user.value: user?.toMap(),
};
final String result = await methodChannel.invokeMethod(
Method.remoteConfigGetString.value,
arguments,
);
return result;
} catch (e) {
return defaultValue;
}
}