VTTCue class

The interface—part of the API for handling WebVTT (text tracks on media presentations)—describes and controls the text track associated with a particular <track> element.

EventTarget

TextTrackCue

VTTCue

Implemented types
Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

VTTCue(double startTime, dynamic endTime, String text)
factory

Properties

align AlignSetting

Available on VTTCue, provided by the PropsVTTCue extension

getter/setter pair
endTime ↔ dynamic

Available on TextTrackCue, provided by the PropsTextTrackCue extension

getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String

Available on TextTrackCue, provided by the PropsTextTrackCue extension

getter/setter pair
line ↔ dynamic

Available on VTTCue, provided by the PropsVTTCue extension

getter/setter pair
lineAlign LineAlignSetting

Available on VTTCue, provided by the PropsVTTCue extension

getter/setter pair
onenter EventHandlerNonNull<Event>?

Available on TextTrackCue, provided by the PropsTextTrackCue extension

getter/setter pair
onexit EventHandlerNonNull<Event>?

Available on TextTrackCue, provided by the PropsTextTrackCue extension

getter/setter pair
pauseOnExit bool

Available on TextTrackCue, provided by the PropsTextTrackCue extension

getter/setter pair
position ↔ dynamic

Available on VTTCue, provided by the PropsVTTCue extension

getter/setter pair
positionAlign PositionAlignSetting

Available on VTTCue, provided by the PropsVTTCue extension

getter/setter pair
region VTTRegion?

Available on VTTCue, provided by the PropsVTTCue extension

getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size double

Available on VTTCue, provided by the PropsVTTCue extension

getter/setter pair
snapToLines bool

Available on VTTCue, provided by the PropsVTTCue extension

getter/setter pair
startTime double

Available on TextTrackCue, provided by the PropsTextTrackCue extension

getter/setter pair
text String

Available on VTTCue, provided by the PropsVTTCue extension

getter/setter pair
track TextTrack?

Available on TextTrackCue, provided by the PropsTextTrackCue extension

no setter
vertical DirectionSetting

Available on VTTCue, provided by the PropsVTTCue extension

getter/setter pair

Methods

addEventListener(String type, EventListener? callback, [dynamic options]) → void

Available on EventTarget, provided by the PropsEventTarget extension

dispatchEvent(Event event) bool

Available on EventTarget, provided by the PropsEventTarget extension

getCueAsHTML() DocumentFragment

Available on VTTCue, provided by the PropsVTTCue extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeEventListener(String type, EventListener? callback, [dynamic options]) → void

Available on EventTarget, provided by the PropsEventTarget extension

toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited