onMessageReceived method

void onMessageReceived(
  1. BuildContext context,
  2. dynamic message
)

Implementation

void onMessageReceived(BuildContext context, dynamic message) {
  RTWebviewChannelEvent? event = receiveStrategy.onMessageReceived(message);

  if (event == null) return;
  call(context, event);
}