Caption constructor

const Caption({
  1. required int number,
  2. required Duration start,
  3. required Duration end,
  4. required 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({
  required this.number,
  required this.start,
  required this.end,
  required this.text,
});