Caption class Null safety

A representation of a single caption.

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

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. [...]
read-only, inherited
number int
The number that this caption was assigned.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
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 non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

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

Constants

none → const Caption
A no caption object. This is a caption with start and end durations of zero, and an empty text string.
Caption(number: 0, start: Duration.zero, end: Duration.zero, text: '')