ClosedCaption class Null safety

Text that gets displayed at specific time during video playback, as part of a ClosedCaptionTrack

Annotations

Constructors

ClosedCaption(String text, Duration offset, Duration duration, Iterable<ClosedCaptionPart> parts)
Initializes an instance of ClosedCaption
ClosedCaption.fromJson(Map<String, dynamic> json)
factory

Properties

duration Duration
Duration this caption is displayed.
final
end Duration
Time at which this caption ends being displayed.
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
offset Duration
Time at which this caption starts being displayed.
final
parts UnmodifiableListView<ClosedCaptionPart>
Caption parts (usually individual words). May be empty because not all captions contain parts.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
text String
Text displayed by this caption.
final

Methods

getPartByTime(Duration offset) ClosedCaptionPart?
Gets the caption part displayed at the specified point in time, relative to this caption's offset. Returns null if not found. Note that some captions may not have any parts at all.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object. [...]
override

Operators

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