copyWith method
创建一个新的配置,覆盖当前配置的某些属性
Implementation
RCKSightStyleConfig copyWith({
double? maxWidth,
double? maxHeight,
double? playButtonSize,
Color? playButtonColor,
String? customPlayButtonIconPath,
}) {
return RCKSightStyleConfig(
maxWidth: maxWidth ?? this.maxWidth,
maxHeight: maxHeight ?? this.maxHeight,
playButtonSize: playButtonSize ?? this.playButtonSize,
playButtonColor: playButtonColor ?? this.playButtonColor,
customPlayButtonIconPath:
customPlayButtonIconPath ?? this.customPlayButtonIconPath,
);
}