copyWith method

  1. @override
VWizardStyle copyWith({
  1. Color? defaultBackgroundColor,
  2. Color? inProgressColor,
  3. Color? successColor,
  4. Color? incompleteColor,
  5. Color? errorIconColor,
  6. Color? errorIconBgColor,
  7. TextStyle? numberTextStyle,
  8. 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,
  );
}