Spec-Zone.ru › Dart 1

dart:html

EventTarget class

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
  • MediaKeySession
  • MediaQueryList
  • MediaRecorder
  • MediaSource
  • MediaStream
  • MediaStreamTrack
  • MessagePort
  • MidiAccess
  • MidiPort
  • NetworkInformation
  • Node
  • Notification
  • Performance
  • PermissionStatus
  • PresentationAvailability
  • PresentationConnection
  • PresentationReceiver
  • PresentationRequest
  • Request
  • RtcDataChannel
  • RtcDtmfSender
  • RtcPeerConnection
  • ScreenOrientation
  • ServicePortCollection
  • ServiceWorkerContainer
  • ServiceWorkerRegistration
  • SharedWorker
  • SourceBuffer
  • SourceBufferList
  • SpeechRecognition
  • SpeechSynthesis
  • SpeechSynthesisUtterance
  • 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

EventTarget()
EventTarget.internal_()

Properties

on → Events
read-only

This is an ease-of-use accessor for event streams which should only be used when an explicit accessor is not available.

hashCode → int
read-only, inherited
runtimeType → Type
read-only, inherited

A representation of the runtime type of the object.

Operators

operator ==(other) → bool
inherited

The equality operator.

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
inherited

Invoked when a non-existent method or property is accessed.

toString() → String
inherited

Returns the result of the JavaScript objects toString method.

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-html/EventTarget-class.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API