WebMessageCallback typedef
WebMessageCallback =
void Function(WebMessage? message)
The listener for handling PlatformWebMessagePort events. The message callback methods are called on the main thread.
Implementation
typedef void WebMessageCallback(WebMessage? message);