WindowEventHandlers class

Implementers
Available extensions
Annotations
  • @JS()
  • @staticInterop
  • @anonymous

Constructors

WindowEventHandlers({dynamic onafterprint(Event)?, dynamic onbeforeprint(Event)?, dynamic onbeforeunload(BeforeUnloadEvent)?, dynamic ongamepadconnected(GamepadEvent)?, dynamic ongamepaddisconnected(GamepadEvent)?, dynamic onhashchange(HashChangeEvent)?, dynamic onlanguagechange(Event)?, dynamic onmessage(MessageEvent)?, dynamic onmessageerror(MessageEvent)?, dynamic onoffline(Event)?, dynamic ononline(Event)?, dynamic onpagehide(PageTransitionEvent)?, dynamic onpageshow(PageTransitionEvent)?, dynamic onpopstate(PopStateEvent)?, dynamic onrejectionhandled(PromiseRejectionEvent)?, dynamic onstorage(StorageEvent)?, dynamic onunhandledrejection(PromiseRejectionEvent)?, dynamic onunload(Event)?})
factory

Properties

addEventListener → ({void Function<K$>(WindowEventHandlersEventMap<K$> type, dynamic listener(K$), [Object? options]) $1, void Function(String type, Object listener, [Object? options]) $2})

Available on WindowEventHandlers, provided by the WindowEventHandlers$Typings extension

Overload accessor: $1, $2
no setter
hashCode int
The hash code for this object.
no setterinherited
onafterprint ↔ dynamic Function(Event)?

Available on WindowEventHandlers, provided by the WindowEventHandlers$Typings extension

MDN Reference
getter/setter pair
onbeforeprint ↔ dynamic Function(Event)?

Available on WindowEventHandlers, provided by the WindowEventHandlers$Typings extension

MDN Reference
getter/setter pair
onbeforeunload ↔ dynamic Function(BeforeUnloadEvent)?

Available on WindowEventHandlers, provided by the WindowEventHandlers$Typings extension

MDN Reference
getter/setter pair
ongamepadconnected ↔ dynamic Function(GamepadEvent)?

Available on WindowEventHandlers, provided by the WindowEventHandlers$Typings extension

MDN Reference
getter/setter pair
ongamepaddisconnected ↔ dynamic Function(GamepadEvent)?

Available on WindowEventHandlers, provided by the WindowEventHandlers$Typings extension

MDN Reference
getter/setter pair
onhashchange ↔ dynamic Function(HashChangeEvent)?

Available on WindowEventHandlers, provided by the WindowEventHandlers$Typings extension

MDN Reference
getter/setter pair
onlanguagechange ↔ dynamic Function(Event)?

Available on WindowEventHandlers, provided by the WindowEventHandlers$Typings extension

MDN Reference
getter/setter pair
onmessage ↔ dynamic Function(MessageEvent)?

Available on WindowEventHandlers, provided by the WindowEventHandlers$Typings extension

MDN Reference
getter/setter pair
onmessageerror ↔ dynamic Function(MessageEvent)?

Available on WindowEventHandlers, provided by the WindowEventHandlers$Typings extension

MDN Reference
getter/setter pair
onoffline ↔ dynamic Function(Event)?

Available on WindowEventHandlers, provided by the WindowEventHandlers$Typings extension

MDN Reference
getter/setter pair
ononline ↔ dynamic Function(Event)?

Available on WindowEventHandlers, provided by the WindowEventHandlers$Typings extension

MDN Reference
getter/setter pair
onpagehide ↔ dynamic Function(PageTransitionEvent)?

Available on WindowEventHandlers, provided by the WindowEventHandlers$Typings extension

MDN Reference
getter/setter pair
onpageshow ↔ dynamic Function(PageTransitionEvent)?

Available on WindowEventHandlers, provided by the WindowEventHandlers$Typings extension

MDN Reference
getter/setter pair
onpopstate ↔ dynamic Function(PopStateEvent)?

Available on WindowEventHandlers, provided by the WindowEventHandlers$Typings extension

MDN Reference
getter/setter pair
onrejectionhandled ↔ dynamic Function(PromiseRejectionEvent)?

Available on WindowEventHandlers, provided by the WindowEventHandlers$Typings extension

MDN Reference
getter/setter pair
onstorage ↔ dynamic Function(StorageEvent)?

Available on WindowEventHandlers, provided by the WindowEventHandlers$Typings extension

MDN Reference
getter/setter pair
onunhandledrejection ↔ dynamic Function(PromiseRejectionEvent)?

Available on WindowEventHandlers, provided by the WindowEventHandlers$Typings extension

MDN Reference
getter/setter pair
onunload ↔ dynamic Function(Event)?

Available on WindowEventHandlers, provided by the WindowEventHandlers$Typings extension

MDN Reference
getter/setter pair
removeEventListener → ({void Function<K$>(WindowEventHandlersEventMap<K$> type, dynamic listener(K$), [Object? options]) $1, void Function(String type, Object listener, [Object? options]) $2})

Available on WindowEventHandlers, provided by the WindowEventHandlers$Typings extension

Overload accessor: $1, $2
no setter
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