getPushConfigsFromCache method Null safety

  1. @deprecated
Future<ChatPushConfigs?> getPushConfigsFromCache()

Implementation

@deprecated
Future<ChatPushConfigs?> getPushConfigsFromCache() async {
  Map result = await PushChannel.invokeMethod(ChatMethodKeys.getImPushConfig);
  try {
    ChatError.hasErrorFromResult(result);
    return ChatPushConfigs.fromJson(result[ChatMethodKeys.getImPushConfig]);
  } on ChatError catch (e) {
    throw e;
  }
}