addMessage method

void addMessage(
  1. Message message
)

Used to add message in message list.

Implementation

void addMessage(Message message) {
  initialMessageList.add(message);
  messageStreamController.sink.add(initialMessageList);
}