copyWith method

Track copyWith({
  1. VideoTrack? video,
  2. AudioTrack? audio,
  3. SubtitleTrack? subtitle,
})

Implementation

Track copyWith({
  VideoTrack? video,
  AudioTrack? audio,
  SubtitleTrack? subtitle,
}) {
  return Track(
    video: video ?? this.video,
    audio: audio ?? this.audio,
    subtitle: subtitle ?? this.subtitle,
  );
}