unblockMembers method Null safety

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

Removes users from the group block list.

Only the group owner or admin can call this method.

Param groupId The group ID.

Param members The users to be removed from the group block list.

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

Implementation

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