removeMembers method

Future<void> removeMembers(
  1. String groupId,
  2. List<String> members

Removes a member from the group.

Only the group owner or admin can call this method.

Param groupId The group ID.

Param members The username of the member to be removed.

Throws A description of the exception. See ChatError.


Future<void> removeMembers(
  String groupId,
  List<String> members,
) async {
  Map req = {'groupId': groupId, 'members': members};
  Map result = await _channel.invokeMethod(ChatMethodKeys.removeMembers, req);
  try {
  } on ChatError catch (e) {
    throw e;