single static method

List<BetterPlayerSubtitlesSource> single({
  1. BetterPlayerSubtitlesSourceType? type,
  2. String name = "Default subtitles",
  3. String? url,
  4. String? content,
  5. bool? selectedByDefault,
  6. Map<String, String>? headers,
})

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,
      )
    ];