MessageEvent$Typings<T> extension
Properties
-
data
→ T
-
Returns the data of the message.
no setter
-
initMessageEvent
→ ({void Function(String type, [bool? bubbles, bool? cancelable, dynamic data, String? origin, String? lastEventId, MessageEventSource? source, List<MessagePort>? ports]) $1, void Function(String type, [bool? bubbles, bool? cancelable, dynamic data, String? origin, String? lastEventId, MessageEventSource? source, Iterable<MessagePort>? ports]) $2})
-
Overload accessor: $1, $2
no setter
-
lastEventId
→ String
-
Returns the last event ID string, for server-sent events.
no setter
-
origin
→ String
-
Returns the origin of the message, for server-sent events and cross-document messaging.
no setter
-
ports
→ ReadonlyArray<MessagePort>
-
Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging.
no setter
-
source
→ MessageEventSource?
-
Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects.
no setter