WebMessageListener class Null safety

This listener receives messages sent on the JavaScript object which was injected by InAppWebViewController.addWebMessageListener.

Constructors

WebMessageListener({required String jsObjectName, Set<String>? allowedOriginRules, OnPostMessageCallback? onPostMessage})

Properties

allowedOriginRules Set<String>
A set of matching rules for the allowed origins.
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
jsObjectName String
The name for the injected JavaScript object.
final
onPostMessage OnPostMessageCallback?
Event that receives a message sent by a postMessage() on the injected JavaScript object. [...]
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

handleMethod(MethodCall call) Future
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
toMap() Map<String, dynamic>
toString() String
A string representation of this object. [...]
override

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited