Base class for all browser objects that support events.
Use the on property to add, and remove events for compile-time type checks and a more concise API.
- Inheritance
- Object
- JSObject
- DartHtmlDomObject
- EventTarget
- Implemented by
- AbstractWorker
- Animation
- ApplicationCache
- AudioContext
- AudioNode
- AudioTrackList
- BatteryManager
- CompositorWorker
- CrossOriginServiceWorkerClient
- Database
- EventSource
- FileReader
- FileWriter
- FontFaceSet
- GlobalEventHandlers
- HttpRequestEventTarget
- MediaController
- MediaKeySession
- MediaQueryList
- MediaSource
- MediaStream
- MediaStreamTrack
- MessagePort
- MidiAccess
- MidiPort
- NetworkInformation
- Node
- Notification
- Performance
- PermissionStatus
- Presentation
- PresentationAvailability
- PresentationSession
- Request
- RtcDataChannel
- RtcDtmfSender
- RtcPeerConnection
- ScreenOrientation
- ServicePortCollection
- ServiceWorkerContainer
- ServiceWorkerRegistration
- SharedWorker
- SourceBuffer
- SourceBufferList
- SpeechRecognition
- SpeechSynthesis
- SpeechSynthesisUtterance
- StashedPortCollection
- TextTrack
- TextTrackCue
- TextTrackList
- Transaction
- VideoTrackList
- WebSocket
- Window
- WindowBase
- WindowEventHandlers
- Worker
- WorkerGlobalScope
- WorkerPerformance
- Annotations
- @DomName('EventTarget')
Static Properties
- instanceRuntimeType → Type
-
@Deprecated("Internal Use Only"), read-only
Constructors
Properties
Operators
-
operator ==(
other) → bool -
The equality operator.
inherited
Methods
-
addEventListener(
String type, EventListener listener, [ bool useCapture ]) → void -
dispatchEvent(
Event event) → bool -
@DocsEditable(), @DomName('EventTarget.dispatchEvent')
-
removeEventListener(
String type, EventListener listener, [ bool useCapture ]) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited -
toString(
) → String -
Returns the result of the JavaScript objects
toString
method.inherited