removeWhiteList method Null safety

  1. @Deprecated("Switch to using removeAllowList instead.")
Future<void> removeWhiteList(
  1. String groupId,
  2. List<String> members
)
@Deprecated("Switch to using removeAllowList instead.")

Removes members from the allow list of the group.

Only the group owner or admin can call this method.

Param groupId The group ID.

Param members The members to be removed from the allow list of the group.

Throws A description of the exception. See {@link EMError}.

Implementation

@Deprecated("Switch to using removeAllowList instead.")
Future<void> removeWhiteList(
  String groupId,
  List<String> members,
) async {
  Map req = {'groupId': groupId, 'members': members};
  Map result =
      await _channel.invokeMethod(ChatMethodKeys.removeWhiteList, req);
  try {
    EMError.hasErrorFromResult(result);
  } on EMError catch (e) {
    throw e;
  }
}