SubtitleProvider class abstract

Base class of subtitle providers. It was created to simplify fetching subtitle file data from multiple sources.

Implementers

Constructors

SubtitleProvider()
const
SubtitleProvider.fromFile(File file, {SubtitleType? type})
File subtitles
factory
SubtitleProvider.fromNetwork(Uri url, {SubtitleType? type})
Network subtitles
factory
SubtitleProvider.fromString({required String data, required SubtitleType type})
Use this provider for string to generate a subtitles. You should provide the current format type of this subtitle. for example:
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getSubtitle() Future<SubtitleObject>
Abstract method return an instance of SubtitleObject.
getSubtitleType(String ext) SubtitleType
Return the current SubtitleType depended on file extension.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Constants

supportedExtensions → const List<String>
Store the supported subtitle file format extensions.