WindowEventHandlers constructor
WindowEventHandlers({
- dynamic onafterprint()?,
- dynamic onbeforeprint()?,
- dynamic onbeforeunload()?,
- dynamic ongamepadconnected()?,
- dynamic ongamepaddisconnected()?,
- dynamic onhashchange()?,
- dynamic onlanguagechange()?,
- dynamic onmessage()?,
- dynamic onmessageerror()?,
- dynamic onoffline()?,
- dynamic ononline()?,
- dynamic onpagehide()?,
- dynamic onpageshow()?,
- dynamic onpopstate()?,
- dynamic onrejectionhandled()?,
- dynamic onstorage()?,
- dynamic onunhandledrejection()?,
- dynamic onunload()?,
Implementation
factory WindowEventHandlers({
_i2.dynamic Function(_i3.Event)? onafterprint,
_i2.dynamic Function(_i3.Event)? onbeforeprint,
_i2.dynamic Function(_i3.BeforeUnloadEvent)? onbeforeunload,
_i2.dynamic Function(_i3.GamepadEvent)? ongamepadconnected,
_i2.dynamic Function(_i3.GamepadEvent)? ongamepaddisconnected,
_i2.dynamic Function(_i3.HashChangeEvent)? onhashchange,
_i2.dynamic Function(_i3.Event)? onlanguagechange,
_i2.dynamic Function(_i3.MessageEvent<_i2.dynamic>)? onmessage,
_i2.dynamic Function(_i3.MessageEvent<_i2.dynamic>)? onmessageerror,
_i2.dynamic Function(_i3.Event)? onoffline,
_i2.dynamic Function(_i3.Event)? ononline,
_i2.dynamic Function(_i3.PageTransitionEvent)? onpagehide,
_i2.dynamic Function(_i3.PageTransitionEvent)? onpageshow,
_i2.dynamic Function(_i3.PopStateEvent)? onpopstate,
_i2.dynamic Function(_i3.PromiseRejectionEvent)? onrejectionhandled,
_i2.dynamic Function(_i3.StorageEvent)? onstorage,
_i2.dynamic Function(_i3.PromiseRejectionEvent)? onunhandledrejection,
_i2.dynamic Function(_i3.Event)? onunload,
}) =>
WindowEventHandlers._(
onafterprint: onafterprint == null
? _i6.undefined
: _i4.allowInterop(onafterprint),
onbeforeprint: onbeforeprint == null
? _i6.undefined
: _i4.allowInterop(onbeforeprint),
onbeforeunload: onbeforeunload == null
? _i6.undefined
: _i4.allowInterop(onbeforeunload),
ongamepadconnected: ongamepadconnected == null
? _i6.undefined
: _i4.allowInterop(ongamepadconnected),
ongamepaddisconnected: ongamepaddisconnected == null
? _i6.undefined
: _i4.allowInterop(ongamepaddisconnected),
onhashchange: onhashchange == null
? _i6.undefined
: _i4.allowInterop(onhashchange),
onlanguagechange: onlanguagechange == null
? _i6.undefined
: _i4.allowInterop(onlanguagechange),
onmessage:
onmessage == null ? _i6.undefined : _i4.allowInterop(onmessage),
onmessageerror: onmessageerror == null
? _i6.undefined
: _i4.allowInterop(onmessageerror),
onoffline:
onoffline == null ? _i6.undefined : _i4.allowInterop(onoffline),
ononline: ononline == null ? _i6.undefined : _i4.allowInterop(ononline),
onpagehide:
onpagehide == null ? _i6.undefined : _i4.allowInterop(onpagehide),
onpageshow:
onpageshow == null ? _i6.undefined : _i4.allowInterop(onpageshow),
onpopstate:
onpopstate == null ? _i6.undefined : _i4.allowInterop(onpopstate),
onrejectionhandled: onrejectionhandled == null
? _i6.undefined
: _i4.allowInterop(onrejectionhandled),
onstorage:
onstorage == null ? _i6.undefined : _i4.allowInterop(onstorage),
onunhandledrejection: onunhandledrejection == null
? _i6.undefined
: _i4.allowInterop(onunhandledrejection),
onunload: onunload == null ? _i6.undefined : _i4.allowInterop(onunload),
);