copyWith method

CartStepperStyle copyWith({
  1. Color? activeForegroundColor,
  2. Color? activeBackgroundColor,
  3. Color? foregroundColor,
  4. Color? backgroundColor,
  5. BoxShape? shape,
  6. Radius? radius,
  7. BoxBorder? border,
  8. bool noBorder = false,
  9. Color? shadowColor,
  10. TextStyle? textStyle,
  11. IconThemeData? iconTheme,
  12. IconData? iconPlus,
  13. IconData? iconMinus,
  14. double? buttonAspectRatio,
  15. double? elevation,
})

copyWidth

Implementation

CartStepperStyle copyWith({
  Color? activeForegroundColor,
  Color? activeBackgroundColor,
  Color? foregroundColor,
  Color? backgroundColor,
  BoxShape? shape,
  Radius? radius,
  BoxBorder? border,
  bool noBorder = false,
  Color? shadowColor,
  TextStyle? textStyle,
  IconThemeData? iconTheme,
  IconData? iconPlus,
  IconData? iconMinus,
  double? buttonAspectRatio,
  double? elevation,
}) {
  return CartStepperStyle(
    activeForegroundColor:
        activeForegroundColor ?? this.activeForegroundColor,
    activeBackgroundColor:
        activeBackgroundColor ?? this.activeBackgroundColor,
    foregroundColor: foregroundColor ?? this.foregroundColor,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    shape: shape ?? this.shape,
    radius: radius ?? this.radius,
    border: noBorder ? null : (border ?? this.border),
    shadowColor: shadowColor ?? this.shadowColor,
    textStyle: textStyle ?? this.textStyle,
    iconTheme: iconTheme ?? this.iconTheme,
    iconPlus: iconPlus ?? this.iconPlus,
    iconMinus: iconMinus ?? this.iconMinus,
    buttonAspectRatio: buttonAspectRatio ?? this.buttonAspectRatio,
    elevation: elevation ?? this.elevation,
  );
}