SubtitleController class

The default class to controller subtitles, you can use it or extends ISubtitleController to create your custom.

Inheritance

Constructors

SubtitleController({required SubtitleProvider provider})

Properties

hashCode int
The hash code for this object.
no setterinherited
initialized bool
Check it the controller is initial or not.
no setterinherited
parser ISubtitleParser
Get the parser class
no setterinherited
provider SubtitleProvider
Return the current subtitle provider
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subtitles List<Subtitle>
Store the subtitles objects after decoded.
finalinherited

Methods

durationSearch(Duration duration) Subtitle?
Fetch your current single subtitle value by providing the duration.
override
getAll([String separator = ', ']) String
Get all subtitles as a single string, you can separate between subtitles using separator, the default is , .
inherited
initial() Future<void>
inherited
multiDurationSearch(Duration duration) List<Subtitle>
To get one or more subtitles in same duration range.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sort() → void
Sort all subtitles object from smaller duration to larger duration.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited