getSource method

Future<RemoteConfigSource?> getSource(
  1. String key
)

Return the source of the key.

Implementation

Future<RemoteConfigSource?> getSource(String key) async {
  dynamic value = await _channel
      .invokeMethod('getSource', <String, String>{'key': key});
  switch (value) {
    case 0:
      return RemoteConfigSource.initial;
    case 1:
      return RemoteConfigSource.local;
    case 2:
      return RemoteConfigSource.remote;
    default:
      return null;
  }
}