updateChatroomMyMemberInfo method Null safety

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

Update the current user's information in the chatroom.

  • roomId The chatroom ID.

  • request The role information that can be updated.

  • needNotify Specify whether to notify chatroom members of the updates of the user's information.

  • notifyExtension The extension field of the notification on the update of the user's information.

Implementation

Future<NIMResult<void>> updateChatroomMyMemberInfo({
  required String roomId,
  required NIMChatroomUpdateMyMemberInfoRequest request,
  bool needNotify = true,
  Map<String, dynamic>? notifyExtension,
}) async {
  return _platform.updateChatroomMyMemberInfo(
    roomId: roomId,
    request: request,
    needNotify: needNotify,
    notifyExtension: notifyExtension,
  );
}