copyWith method
SubtitleConfig
copyWith({
- SubtitleStyleConfig? styleConfig,
- bool? enableAnimation,
- Duration? animationDuration,
- 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,
);
}