getSource method
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;
}
}