OnPostMessageCallback typedef Null safety

OnPostMessageCallback = void Function(String? message, Uri? sourceOrigin, bool isMainFrame, JavaScriptReplyProxy replyProxy)

The listener for handling WebMessageListener events sent by a postMessage() on the injected JavaScript object.

Implementation

typedef void OnPostMessageCallback(String? message, Uri? sourceOrigin,
    bool isMainFrame, JavaScriptReplyProxy replyProxy);