Subtitle constructor

Subtitle({
  1. required int index,
  2. required String text,
})

创建一条字幕实体。

Creates a subtitle entity.

  • index 字幕轨道索引。 The subtitle track index.
  • text 字幕文本内容。 The subtitle text content.

Implementation

Subtitle({
  required this.index,
  required this.text,
});