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