FileSubtitle class

File subtitles

A class that deals with local files subtitle on the device. You can provide the file in the constructor function for the purpose of completing its processing. You can call it by FileSubtitle class or by factory constructor in SubtitleProvider.fromFile.


  // Using  [FileSubtitle] class.
  FileSubtitle fileSub = new FileSubtitle(myFile);

  // Using factory constructor.
  SubtitleProvider fileSub = SubtitleProvider.fromFile(myFile);

Inheritance

Constructors

FileSubtitle(File file, {SubtitleType? type})
const

Properties

file File
The current file that having subtitle data.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type SubtitleType?
final

Methods

getSubtitle() Future<SubtitleObject>
Abstract method return an instance of SubtitleObject.
override
getSubtitleType(String ext) SubtitleType
Return the current SubtitleType depended on file extension.
inherited
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