copyWith method

SpeakerSegment copyWith({
  1. String? id,
  2. double? startTime,
  3. double? endTime,
  4. String? text,
  5. Map<String, dynamic>? dubs,
})

Implementation

SpeakerSegment copyWith(
    {String? id,
    double? startTime,
    double? endTime,
    String? text,
    Map<String, dynamic>? dubs}) {
  return SpeakerSegment(
      id: id ?? this.id,
      startTime: startTime ?? this.startTime,
      endTime: endTime ?? this.endTime,
      text: text ?? this.text,
      dubs: dubs ?? this.dubs);
}