Captions class

A representation of the caption which includes text or picture.

Annotations

Constructors

Captions({List<TextCaption>? textCaptions, PictureCaption? pictureCaption})
Creates a new Captions object.
const

Properties

hashCode int
The hash code for this object.
no setteroverride
pictureCaption PictureCaption?
The PictureCaption that should be displayed based on the current position.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textCaptions List<TextCaption>?
The TextCaption that should be displayed based on the current position.
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

Static Methods

parseSubtitle(Duration position, SubtitlesInfo subtitlesInfo) Captions?
Parses a subtitle from a VideoEvent.subtitlesInfo into a Captions object.

Constants

none → const Captions
A no captions object. This is a caption with a list of TextCaption.none and a PictureCaption.none.