updateOtherUser method

void updateOtherUser(
  1. ChatUser chatUser
)

Function for updating the details of an existing user (other users).

Parameters:

  • (required): chatUser The updated ChatUser object containing new user details.

Implementation

void updateOtherUser(ChatUser chatUser) =>
    _otherUsers[chatUser.id] = chatUser;