MessageEvent class Null safety

Inheritance
Annotations
  • @Native("MessageEvent")

Constructors

MessageEvent(String type, {bool canBubble = false, bool cancelable = false, Object? data, String? origin, String? lastEventId, Window? source, List<MessagePort> messagePorts = const []})
factory

Properties

bubbles bool?
read-onlyinherited
cancelable bool?
read-onlyinherited
composed bool?
read-onlyinherited
currentTarget EventTarget?
read-onlyinherited
data → dynamic
read-only
defaultPrevented bool
read-onlyinherited
eventPhase int
read-onlyinherited
hashCode int
The hash code for this object.
read-onlyinherited
isTrusted bool?
read-onlyinherited
lastEventId String
read-only
matchingTarget Element
A pointer to the element whose CSS selector matched within which an event was fired. If this Event was not associated with any Event delegation, accessing this value will throw an UnsupportedError.
read-onlyinherited
origin String
read-only
path List<EventTarget>
read-onlyinherited
ports List<MessagePort>
read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
source EventTarget?
read-only
suborigin String?
read-only
target EventTarget?
read-onlyinherited
timeStamp num?
read-onlyinherited
type String
read-onlyinherited

Methods

composedPath() List<EventTarget>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
preventDefault() → void
inherited
stopImmediatePropagation() → void
inherited
stopPropagation() → void
inherited
toString() String
A string representation of this object.
inherited

Operators

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