MessageEvent class

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

bubblesbool?
read-only, inherited
cancelablebool?
read-only, inherited
composedbool?
read-only, inherited
currentTargetEventTarget?
read-only, inherited
data → dynamic
read-only
defaultPreventedbool
read-only, inherited
eventPhaseint
read-only, inherited
hashCodeint
read-only, inherited
The hash code for this object. [...]
isTrustedbool?
read-only, inherited
lastEventIdString
@Unstable(), read-only
matchingTargetElement
read-only, inherited
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.
originString
read-only
pathList<EventTarget>
read-only, inherited
portsList<MessagePort>
@Creates('JSExtendableArray'), @Unstable(), read-only
runtimeTypeType
read-only, inherited
A representation of the runtime type of the object.
sourceEventTarget?
read-only
suboriginString?
read-only
targetEventTarget?
read-only, inherited
timeStampnum?
read-only, inherited
typeString
read-only, inherited

Methods

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

Operators

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

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-html/MessageEvent-class.html