ChatOperation.set constructor
Creates a set operation (signifying a full list replacement).
The messages
parameter contains the new list of messages. Passing an empty list
signifies that the chat list should be cleared.
Implementation
factory ChatOperation.set(List<Message> messages) =>
ChatOperation._(ChatOperationType.set, messages: messages);