markChatroomMemberInBlackList method Null safety

Future<NIMResult<NIMChatroomMember>> markChatroomMemberInBlackList(
  1. {required bool isAdd,
  2. required NIMChatroomMemberOptions options}
)

Add a member to the blocklist or remove a member from it.

  • isAdd true: add the member to the blocklist, false: remove the member from the blocklist
  • memberOption The request parameters including the chatroom ID, account ID, and the optional extension field

Implementation

Future<NIMResult<NIMChatroomMember>> markChatroomMemberInBlackList({
  required bool isAdd,
  required NIMChatroomMemberOptions options,
}) {
  return _platform.markChatroomMemberInBlackList(
      isAdd: isAdd, options: options);
}