MessageDispatchCallback typedef
Sends Message to your backend.
Return the stored message (it replaces the local one, so it may carry a
server id or timestamp) on success, or null on failure. Throw
MessageBlockedException when the server refuses the message.
Implementation
typedef MessageDispatchCallback = Future<Message?> Function(Message);