copyWith method
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, - 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,
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,
);
}