single static method

List<PipFlutterPlayerSubtitlesSource> single({
  1. PipFlutterPlayerSubtitlesSourceType? 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<PipFlutterPlayerSubtitlesSource> single({
  PipFlutterPlayerSubtitlesSourceType? type,
  String name = "Default subtitles",
  String? url,
  String? content,
  bool? selectedByDefault,
  Map<String, String>? headers,
}) =>
    [
      PipFlutterPlayerSubtitlesSource(
        type: type,
        name: name,
        urls: [url],
        content: content,
        selectedByDefault: selectedByDefault,
        headers: headers,
      )
    ];