getImPushConfig method Null safety

  1. @Deprecated('use - getPushConfigsFromCache method instead.')
Future<EMPushConfigs> getImPushConfig()
@Deprecated('use - getPushConfigsFromCache method instead.')

Gets push options from the local database.

Implementation

@Deprecated('use - getPushConfigsFromCache method instead.')
Future<EMPushConfigs> getImPushConfig() async {
  Map result = await _channel.invokeMethod(ChatMethodKeys.getImPushConfig);
  try {
    EMError.hasErrorFromResult(result);
    return EMPushConfigs.fromJson(result[ChatMethodKeys.getImPushConfig]);
  } on EMError catch (e) {
    throw e;
  }
}