fetchPushConfigsFromServer method Null safety
Gets the push configurations from the server.
Implementation
Future<EMPushConfigs> fetchPushConfigsFromServer() async {
Map result =
await _channel.invokeMethod(ChatMethodKeys.getImPushConfigFromServer);
try {
EMError.hasErrorFromResult(result);
return EMPushConfigs.fromJson(
result[ChatMethodKeys.getImPushConfigFromServer]);
} on EMError catch (e) {
throw e;
}
}