GetRemoteConfig method

  1. @override
Future<String?> GetRemoteConfig(
  1. String key,
  2. String defaultValue
)
override

Implementation

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

  return null;
}