getByTime method
Gets the caption displayed at the specified point in time. Returns null if not found.
Implementation
ClosedCaption? getByTime(Duration time) =>
captions.firstWhereOrNull((e) => time >= e.offset && time <= e.end);
Gets the caption displayed at the specified point in time. Returns null if not found.
ClosedCaption? getByTime(Duration time) =>
captions.firstWhereOrNull((e) => time >= e.offset && time <= e.end);