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-only, inherited
cancelable bool?
read-only, inherited
composed bool?
read-only, inherited
currentTarget EventTarget?
read-only, inherited
data → dynamic
read-only
defaultPrevented bool
read-only, inherited
eventPhase int
read-only, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
isTrusted bool?
read-only, inherited
lastEventId String
@Unstable(), 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-only, inherited
origin String
read-only
path List<EventTarget>
read-only, inherited
ports List<MessagePort>
@Creates('JSExtendableArray'), @Unstable(), read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
source EventTarget?
read-only
suborigin String?
read-only
target EventTarget?
read-only, inherited
timeStamp num?
read-only, inherited
type String
read-only, inherited

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