Subtitles class

字幕集合,管理多条字幕轨道。

提供字幕的增删查操作,内部维护一个 Subtitle 列表。

Subtitle collection that manages multiple subtitle tracks.

Provides add, remove, and query operations for subtitles, maintaining an internal list of Subtitle entries.

Constructors

Subtitles(List<Subtitle> subtitles)
创建字幕集合。

Properties

hashCode → int
The hash code for this object.
no setterinherited
isEmpty → bool
判断字幕集合是否为空。
no setter
isNotEmpty → bool
判断字幕集合是否不为空。
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
subtitles → List<Subtitle>
字幕列表。
final

Methods

addSubtitle(Subtitle subtitle) → void
添加一条字幕。
getByTrackIndex(int trackIndex) → List<Subtitle>
根据轨道索引获取字幕。
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeSubtitle(int trackIndex) → List<Subtitle>
根据轨道索引移除字幕。
toString() → String
返回当前字幕集合的字符串表示,包含内部字幕列表。
override

Operators

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