ISubtitleController class abstract

The base class of all subtitles controller object.

Implementers

Constructors

ISubtitleController({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 setter
parser ISubtitleParser
Get the parser class
no setter
provider SubtitleProvider
Return the current subtitle provider
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subtitles List<Subtitle>
Store the subtitles objects after decoded.
final

Methods

durationSearch(Duration duration) Subtitle?
Use this method to customize your search algorithm.
getAll([String separator = ', ']) String
Get all subtitles as a single string, you can separate between subtitles using separator, the default is , .
initial() Future<void>
multiDurationSearch(Duration duration) List<Subtitle>
To get one or more subtitles in same duration range.
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.
toString() String
A string representation of this object.
inherited

Operators

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