unBlockChatRoomMembers method Null safety

Future<void> unBlockChatRoomMembers(
  1. String roomId,
  2. List members
)

Removes the specified members from the block list of the chat room.

Only the chat room owner or admin can call this method.

Param roomId The chat room ID.

Param members The list of members to be removed from the block list.

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

Implementation

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