sendMessage method
Implementation
Future<void> sendMessage(dynamic message) async {
try {
if (overlayWindowId != null) {
await messageChannel?.send(OverlayMessage(overlayWindowId!, message, 'Message').toJson());
}
} catch (e) {
log('sendMessage error: $e');
}
}