copyWith method

SpeakerTrack copyWith({
  1. String? id,
  2. DubbingMediaReference? mediaRef,
  3. String? speakerName,
  4. Map<String, dynamic>? voices,
  5. List<String>? segments,
})

Implementation

SpeakerTrack copyWith(
    {String? id,
    DubbingMediaReference? mediaRef,
    String? speakerName,
    Map<String, dynamic>? voices,
    List<String>? segments}) {
  return SpeakerTrack(
      id: id ?? this.id,
      mediaRef: mediaRef ?? this.mediaRef,
      speakerName: speakerName ?? this.speakerName,
      voices: voices ?? this.voices,
      segments: segments ?? this.segments);
}