connectRemoteConfig method
Implementation
@override
Future<RemoteConfigPhase?> connectRemoteConfig(
String id, String channelId) async {
final result = await methodChannel.invokeMethod<String>(
'connectRemoteConfig',
<String, String>{
'id': id,
'channelId': channelId,
},
);
switch (result) {
case "completed":
return RemoteConfigPhase.completed;
case "not-found":
return RemoteConfigPhase.notFound;
case "failed":
return RemoteConfigPhase.failed;
default:
return null;
}
}