single static method
Creates list with only one subtitles
Implementation
static List<BetterPlayerSubtitlesSource> single({
BetterPlayerSubtitlesSourceType? type,
String name = "Default subtitles",
String? url,
String? content,
bool? selectedByDefault,
Map<String, String>? headers,
}) =>
[
BetterPlayerSubtitlesSource(
type: type,
name: name,
urls: [url],
content: content,
selectedByDefault: selectedByDefault,
headers: headers,
)
];