sendMessage method

Future<void> sendMessage(
  1. dynamic message
)

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');
  }
}