PlatformWebMessageListenerCreationParams class
Object specifying creation parameters for creating a PlatformWebMessageListener.
Platform specific implementations can add additional fields by extending this class.
- Annotations
Constructors
-
PlatformWebMessageListenerCreationParams({required String jsObjectName, Set<
String> ? allowedOriginRules, OnPostMessageCallback? onPostMessage}) -
Used by the platform implementation to create a new PlatformWebMessageListener.
const
Properties
-
allowedOriginRules
→ Set<
String> ? -
A set of matching rules for the allowed origins.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited