copyWith method

SubtitleConfig copyWith({
  1. SubtitleStyleConfig? styleConfig,
  2. bool? enableAnimation,
  3. Duration? animationDuration,
  4. Curve? animationCurve,
})

Implementation

SubtitleConfig copyWith({
  SubtitleStyleConfig? styleConfig,
  bool? enableAnimation,
  Duration? animationDuration,
  Curve? animationCurve,
}) {
  return SubtitleConfig(
    styleConfig: styleConfig ?? this.styleConfig,
    enableAnimation: enableAnimation ?? this.enableAnimation,
    animationDuration: animationDuration ?? this.animationDuration,
    animationCurve: animationCurve ?? this.animationCurve,
  );
}