CustomSubtitleParser class

Customizable subtitle parser, for custom regexes. You can provide your regex in pattern, and custom decode in onParsing.

Inheritance

Constructors

CustomSubtitleParser({required SubtitleObject object, required String pattern, required OnParsingSubtitle onParsing})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
object SubtitleObject
The subtitle object that contain subtitle info (file data and format type).
finalinherited
onParsing OnParsingSubtitle
Decoding the subtitles and return a list from result.
final
pattern String
Store the custom regexp of subtitle.
final
regexObject SubtitleRegexObject
Getter method to return the current SubtitleRegexObject of this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

normalize(String txt) String
Normalize the text data of subtitle, remove unnecessary characters.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parsing() List<Subtitle>
Abstract method parsing the data from any format and return it as a list of subtitles.
override
toString() String
A string representation of this object.
inherited

Operators

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