BetterPlayerSubtitlesSource class Null safety

Representation of subtitles source. Used to define subtitles in Better Player.

Constructors

BetterPlayerSubtitlesSource({BetterPlayerSubtitlesSourceType? type, String? name = "Default subtitles", List<String?>? urls, String? content, bool? selectedByDefault})

Properties

content String?
Content of subtitles, used when type is memory
final
hashCode int
The hash code for this object. [...]
read-only, inherited
name String?
Name of the subtitles, default value is "Default subtitles"
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
selectedByDefault bool?
Subtitles selected by default, without user interaction
final
type BetterPlayerSubtitlesSourceType?
Source type
final
urls List<String?>?
Url of the subtitles, used with file or network subtitles
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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

Static Methods

single({BetterPlayerSubtitlesSourceType? type, String name = "Default subtitles", String? url, String? content, bool? selectedByDefault}) List<BetterPlayerSubtitlesSource>
Creates list with only one subtitles