TextTrackCue class
TextTrackCues represent a string of text that will be displayed for some duration of time on a TextTrack. This includes the start and end times that the cue will be displayed. A TextTrackCue cannot be used directly, instead one of the derived types (e.g. VTTCue) must be used.
- Implemented types
- Implementers
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
- TextTrackCue()
-
factory
Properties
- addEventListener ↔ void Function(String, [Object?, Object?])
-
Available on EventTarget, provided by the EventTarget$Typings extension
getter/setter pair -
addEventListener
→ ({void Function<
K$>(TextTrackCueEventMap< $1, void Function(String type, Object listener, [Object? options]) $2})K$> type, dynamic listener(K$), [Object? options]) -
Available on TextTrackCue, provided by the TextTrackCue$Typings extension
Overload accessor: $1, $2no setter - dispatchEvent ↔ bool Function(Event)
-
Available on EventTarget, provided by the EventTarget$Typings extension
getter/setter pair - endTime ↔ num
-
Available on TextTrackCue, provided by the TextTrackCue$Typings extension
Returns the text track cue end time, in seconds.getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String
-
Available on TextTrackCue, provided by the TextTrackCue$Typings extension
Returns the text track cue identifier.getter/setter pair - onenter ↔ dynamic Function(Event)?
-
Available on TextTrackCue, provided by the TextTrackCue$Typings extension
MDN Referencegetter/setter pair - onexit ↔ dynamic Function(Event)?
-
Available on TextTrackCue, provided by the TextTrackCue$Typings extension
MDN Referencegetter/setter pair - pauseOnExit ↔ bool
-
Available on TextTrackCue, provided by the TextTrackCue$Typings extension
Returns true if the text track cue pause-on-exit flag is set, false otherwise.getter/setter pair - removeEventListener ↔ void Function(String, [Object?, Object?])
-
Available on EventTarget, provided by the EventTarget$Typings extension
getter/setter pair -
removeEventListener
→ ({void Function<
K$>(TextTrackCueEventMap< $1, void Function(String type, Object listener, [Object? options]) $2})K$> type, dynamic listener(K$), [Object? options]) -
Available on TextTrackCue, provided by the TextTrackCue$Typings extension
Overload accessor: $1, $2no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startTime ↔ num
-
Available on TextTrackCue, provided by the TextTrackCue$Typings extension
Returns the text track cue start time, in seconds.getter/setter pair - track → TextTrack?
-
Available on TextTrackCue, provided by the TextTrackCue$Typings extension
Returns the TextTrack object to which this text track cue belongs, if any, or null otherwise.no setter
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