getGroupsWithoutNotice method Null safety

  1. @Deprecated("Switch to using EMPushConfig#noDisturbGroupsFromServer instead.")
Future<List<String>?> getGroupsWithoutNotice()
@Deprecated("Switch to using EMPushConfig#noDisturbGroupsFromServer instead.")

Implementation

@Deprecated("Switch to using EMPushConfig#noDisturbGroupsFromServer instead.")
Future<List<String>?> getGroupsWithoutNotice() async {
  Map result = await _channel
      .invokeMethod(ChatMethodKeys.getGroupsWithoutPushNotification);
  EMError.hasErrorFromResult(result);
  var list =
      result[ChatMethodKeys.getGroupsWithoutPushNotification]?.cast<String>();
  return list;
}