Caption constructor

const Caption({
  1. int? number,
  2. Duration? start,
  3. Duration? end,
  4. String? text,
})

Creates a new Caption object.

This is not recommended for direct use unless you are writing a parser for a new closed captioning file type.

Implementation

const Caption({this.number, this.start, this.end, this.text});