WebMessageCallback typedef Null safety

WebMessageCallback = void Function(String? message)

The listener for handling WebMessagePort events. The message callback methods are called on the main thread.

Implementation

typedef void WebMessageCallback(String? message);