Caption class

A representation of a single caption.

A typical closed captioning file will include several Captions, each linked to a start and end time.

Annotations

Constructors

Caption({required int number, required Duration start, required Duration end, required String text})
Creates a new Caption object.
const

Properties

end Duration
When in the given video should this Caption be dismissed.
final
hashCode int
The hash code for this object.
no setteroverride
number int
The number that this caption was assigned.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
start Duration
When in the given video should this Caption begin displaying.
final
text String
The actual text that should appear on screen to be read between start and end.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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

Constants

none → const Caption
A no caption object. This is a caption with start and end durations of zero, and an empty text string.