setWebMessageCallback method

Future<void> setWebMessageCallback(
  1. WebMessageCallback? onMessage
)
override

Sets a callback to receive message events on the main thread.

Implementation

Future<void> setWebMessageCallback(WebMessageCallback? onMessage) =>
    platform.setWebMessageCallback(onMessage);