getNoPushUsersFromCache method Null safety

  1. @Deprecated('')
Future<List<String>> getNoPushUsersFromCache()

Gets the list of users which have blocked the push notification.

return The list of user that blocked the push notification.

Throws A description of the issue that caused this exception. See ChatError

Implementation

@Deprecated('')
Future<List<String>> getNoPushUsersFromCache() async {
  Map result = await PushChannel.invokeMethod(ChatMethodKeys.getNoPushUsers);
  List<String> list = [];
  if (result.containsKey(ChatMethodKeys.getNoPushUsers)) {
    list = result[ChatMethodKeys.getNoPushUsers]?.cast<String>();
  }
  return list;
}