updateOtherUser method
Function for updating the details of an existing user (other users).
Parameters:
- (required):
chatUserThe updatedChatUserobject containing new user details.
Implementation
void updateOtherUser(ChatUser chatUser) =>
_otherUsers[chatUser.id] = chatUser;