updateChatroomInfo method Null safety

Future<NIMResult<void>> updateChatroomInfo(
  1. {required String roomId,
  2. required NIMChatroomUpdateRequest request,
  3. bool needNotify = true,
  4. Map<String, Object>? notifyExtension}
)

Edit the chatroom information. Only the chatroom creator and admins have permission to perform the operation. You can determine whether to trigger a notification (notification type: NIMChatroomNotificationTypes.chatRoomInfoUpdated ) when the chatroom information is modified.

  • roomId The chatroom ID

  • request The chatroom information to be modified

  • needNotify Specify whether to notify chatroom members of the modified chatroom information.

  • notifyExtension The extension field of the notification on the modified chatroom information

Implementation

Future<NIMResult<void>> updateChatroomInfo({
  required String roomId,
  required NIMChatroomUpdateRequest request,
  bool needNotify = true,
  Map<String, Object>? notifyExtension,
}) {
  return _platform.updateChatroomInfo(
    roomId: roomId,
    request: request,
    needNotify: needNotify,
    notifyExtension: notifyExtension,
  );
}