copyWith method

Track copyWith({
  1. num? id,
  2. bool? active,
  3. String? type,
  4. num? bandwidth,
  5. String? language,
  6. String? label,
  7. String? kind,
  8. num? width,
  9. num? height,
  10. num? frameRate,
  11. String? pixelAspectRatio,
  12. String? hdr,
  13. String? mimeType,
  14. String? audioMimeType,
  15. String? videoMimeType,
  16. String? codecs,
  17. String? audioCodec,
  18. String? videoCodec,
  19. bool? primary,
  20. List<String>? roles,
  21. List<String>? audioRoles,
  22. bool? forced,
  23. num? videoId,
  24. num? audioId,
  25. num? channelsCount,
  26. num? audioSamplingRate,
  27. String? tilesLayout,
  28. bool? spatialAudio,
  29. num? audioBandwidth,
  30. num? videoBandwidth,
  31. String? originalVideoId,
  32. String? originalAudioId,
  33. String? originalTextId,
  34. String? originalImageId,
  35. String? originalLanguage,
})

Implementation

Track copyWith({
  num? id,
  bool? active,
  String? type,
  num? bandwidth,
  String? language,
  String? label,
  String? kind,
  num? width,
  num? height,
  num? frameRate,
  String? pixelAspectRatio,
  String? hdr,
  String? mimeType,
  String? audioMimeType,
  String? videoMimeType,
  String? codecs,
  String? audioCodec,
  String? videoCodec,
  bool? primary,
  List<String>? roles,
  List<String>? audioRoles,
  //? accessibilityPurpose,
  bool? forced,
  num? videoId,
  num? audioId,
  num? channelsCount,
  num? audioSamplingRate,
  String? tilesLayout,
  bool? spatialAudio,
  num? audioBandwidth,
  num? videoBandwidth,
  String? originalVideoId,
  String? originalAudioId,
  String? originalTextId,
  String? originalImageId,
  String? originalLanguage,
}) {
  return Track(
    id: id ?? this.id,
    active: active ?? this.active,
    type: type ?? this.type,
    bandwidth: bandwidth ?? this.bandwidth,
    language: language ?? this.language,
    label: label ?? this.label,
    kind: kind ?? this.kind,
    width: width ?? this.width,
    height: height ?? this.height,
    frameRate: frameRate ?? this.frameRate,
    pixelAspectRatio: pixelAspectRatio ?? this.pixelAspectRatio,
    hdr: hdr ?? this.hdr,
    mimeType: mimeType ?? this.mimeType,
    audioMimeType: audioMimeType ?? this.audioMimeType,
    videoMimeType: videoMimeType ?? this.videoMimeType,
    codecs: codecs ?? this.codecs,
    audioCodec: audioCodec ?? this.audioCodec,
    videoCodec: videoCodec ?? this.videoCodec,
    primary: primary ?? this.primary,
    roles: roles ?? this.roles,
    audioRoles: audioRoles ?? this.audioRoles,
    accessibilityPurpose: accessibilityPurpose,
    forced: forced ?? this.forced,
    videoId: videoId ?? this.videoId,
    audioId: audioId ?? this.audioId,
    channelsCount: channelsCount ?? this.channelsCount,
    audioSamplingRate: audioSamplingRate ?? this.audioSamplingRate,
    tilesLayout: tilesLayout ?? this.tilesLayout,
    spatialAudio: spatialAudio ?? this.spatialAudio,
    audioBandwidth: audioBandwidth ?? this.audioBandwidth,
    videoBandwidth: videoBandwidth ?? this.videoBandwidth,
    originalVideoId: originalVideoId ?? this.originalVideoId,
    originalAudioId: originalAudioId ?? this.originalAudioId,
    originalTextId: originalTextId ?? this.originalTextId,
    originalImageId: originalImageId ?? this.originalImageId,
    originalLanguage: originalLanguage ?? this.originalLanguage,
  );
}