sendMessage method
Sends a message to the Catapush backend for delivery.
Implementation
Future<bool> sendMessage(CatapushSendMessage message) {
return _channel
.invokeMethod<Map<Object?, Object?>>('Catapush#sendMessage', {
'message': message.mapRepresentation(),
}).then((response) {
return response!['result']! as bool;
});
}