addMessageToConversationFromRemoteUser method

void addMessageToConversationFromRemoteUser(
  1. String message,
  2. int timestamp,
  3. String userId
)

Adds a Message to the conversation for a remote user.

Implementation

void addMessageToConversationFromRemoteUser(
    String message, int timestamp, String userId) async {
  _conversation
      .add(Message(text: message, timestamp: timestamp, userId: userId));
}