addMessage method
Used to add message in message list.
Implementation
void addMessage(Message message) {
initialMessageList.add(message);
if (!messageStreamController.isClosed) {
messageStreamController.sink.add(initialMessageList);
}
}
Used to add message in message list.
void addMessage(Message message) {
initialMessageList.add(message);
if (!messageStreamController.isClosed) {
messageStreamController.sink.add(initialMessageList);
}
}