removeMessage abstract method
Removes a specific message from the list.
The message parameter is used to identify the message to be removed,
typically by its id.
When implementing, the message parameter might refer to an outdated
instance if it has been updated elsewhere. To ensure correctness:
- Identify the message in your data store using
message.id. - Retrieve the current version of that message from your store.
- The emitted
ChatOperation.remove(currentMessageFromStore, index)must use thiscurrentMessageFromStoreand itsindex(position before removal).
Implementation
Future<void> removeMessage(Message message);