UWebMessage class abstract

Web only: listens to window.postMessage (IPG checkout pages, OAuth popups, parent iframes). Does nothing elsewhere.

Constructors

UWebMessage()

Properties

hashCode → int
The hash code for this object.
no setterinherited
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.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

listen(UWebMessageHandler onMessage) → void Function()
Calls onMessage for every postMessage; call the returned function to stop. final stop = UWebMessage.listen((origin, data) => print(data));