Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
rami comment
  • Loading branch information
johnsonmh committed Jan 15, 2020
commit 42b936ed83a564bf06f0f85a9e8d17916e602089
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ class ClosedCaptionFile {
/// A typical closed captioning file will include several [Caption]s, each
/// linked to a start and end time.
class Caption {
/// 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.
const Caption({this.number, this.start, this.end, this.text});

/// The number that this caption was assigned.
final int number;

Expand All @@ -41,10 +47,4 @@ class Caption {
/// The actual text that should appear on screen to be read between [start]
/// and [end].
final 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.
const Caption({this.number, this.start, this.end, this.text});
}