Subtitle class

单条字幕实体,包含轨道索引和字幕文本。

表示一条具体的字幕数据,通过 index 标识所属轨道, 通过 text 存储字幕文本内容。

A single subtitle entity containing track index and subtitle text.

Represents a concrete subtitle entry, identified by index for its track and storing the subtitle content in text.

Constructors

Subtitle({required int index, required String text})
创建一条字幕实体。

Properties

hashCode → int
基于 index 和 text 计算哈希值。
no setteroverride
index → int
字幕轨道索引。
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
text → String
字幕文本内容。
final

Methods

copyWith({int? index, String? text}) → Subtitle
创建当前字幕的副本,可选覆盖部分属性。
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
返回当前字幕实体的字符串表示,包含轨道索引和字幕文本。
override

Operators

operator ==(Object other) → bool
判断两个字幕是否相等。
override