removeAdmin method

Future<void> removeAdmin(
  1. String groupId,
  2. String adminId

Removes a group admin.

Only the group owner can call this method.

Param groupId The group ID.

Param adminId The username of the admin to remove.

Throws A description of the exception. See ChatError.


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