copyWith method
VWizardStyle
copyWith({
- Color? defaultBackgroundColor,
- Color? inProgressColor,
- Color? successColor,
- Color? incompleteColor,
- Color? errorIconColor,
- Color? errorIconBgColor,
- TextStyle? numberTextStyle,
- double? borderRadius,
override
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
Implementation
@override
VWizardStyle copyWith({
Color? defaultBackgroundColor,
Color? inProgressColor,
Color? successColor,
Color? incompleteColor,
Color? errorIconColor,
Color? errorIconBgColor,
TextStyle? numberTextStyle,
double? borderRadius,
}) {
return VWizardStyle(
defaultBackgroundColor:
defaultBackgroundColor ?? this.defaultBackgroundColor,
inProgressColor: inProgressColor ?? this.inProgressColor,
successColor: successColor ?? this.successColor,
incompleteColor: incompleteColor ?? this.incompleteColor,
numberTextStyle: numberTextStyle ?? this.numberTextStyle,
borderRadius: borderRadius ?? this.borderRadius,
errorIconColor: errorIconColor ?? this.errorIconColor,
errorIconBgColor: errorIconBgColor ?? this.errorIconBgColor,
);
}