copyWith method
SubtitleConfig
copyWith({
- SubtitleStyleConfig? styleConfig,
- EdgeInsets? position,
- bool? enableAnimation,
- Duration? animationDuration,
- Curve? animationCurve,
创建当前配置的副本,可选覆盖部分属性。
Creates a copy of this configuration with optionally overridden properties.
Implementation
SubtitleConfig copyWith({
SubtitleStyleConfig? styleConfig,
EdgeInsets? position,
bool? enableAnimation,
Duration? animationDuration,
Curve? animationCurve,
}) {
return SubtitleConfig(
styleConfig: styleConfig ?? this.styleConfig,
position: position ?? this.position,
enableAnimation: enableAnimation ?? this.enableAnimation,
animationDuration: animationDuration ?? this.animationDuration,
animationCurve: animationCurve ?? this.animationCurve,
);
}