GetRemoteConfigBool method

  1. @override
Future<bool> GetRemoteConfigBool(
  1. String key,
  2. bool defaultValue
)
override

Implementation

@override
Future<bool> GetRemoteConfigBool(String key, bool defaultValue) async {
  try {
    final bool? value = await methodChannel.invokeMethod<bool>(
        'GetRemoteConfigBool', {'key': key, 'defaultValue': defaultValue});
    return value ?? defaultValue;
  } on PlatformException catch (e) {
    print("Failed to call GetRemoteConfigBool: '${e.message}'.");
    return defaultValue;
  }
}