onMessage method

void onMessage(
  1. dynamic message
)

Implementation

void onMessage(dynamic message) {
  try {
    log('OverlayWindowView  ~ message:  $message');
    var overlayMessage = OverlayMessage.fromJson(message);
    _messageStreamController.add(overlayMessage);
  } catch (e) {
    log('onMessage error: $e');
  }
}