copyWith method

Subtitle copyWith({
  1. int? index,
  2. Duration? start,
  3. Duration? end,
  4. dynamic text,
})

Implementation

Subtitle copyWith({
  int? index,
  Duration? start,
  Duration? end,
  dynamic text,
}) {
  return Subtitle(
    index: index ?? this.index,
    start: start ?? this.start,
    end: end ?? this.end,
    text: text ?? this.text,
  );
}