copyWith method

StepStyle copyWith(
  1. {Color? color,
  2. Color? errorColor,
  3. Color? connectorColor,
  4. double? connectorThickness,
  5. BoxBorder? border,
  6. BoxShadow? boxShadow,
  7. Gradient? gradient,
  8. TextStyle? indexStyle}
)

Returns a copy of this ButtonStyle with the given fields replaced with the new values.

Implementation

StepStyle copyWith({
  Color? color,
  Color? errorColor,
  Color? connectorColor,
  double? connectorThickness,
  BoxBorder? border,
  BoxShadow? boxShadow,
  Gradient? gradient,
  TextStyle? indexStyle,
}) {
  return StepStyle(
    color: color ?? this.color,
    errorColor: errorColor ?? this.errorColor,
    connectorColor: connectorColor ?? this.connectorColor,
    connectorThickness: connectorThickness ?? this.connectorThickness,
    border: border ?? this.border,
    boxShadow: boxShadow ?? this.boxShadow,
    gradient: gradient ?? this.gradient,
    indexStyle: indexStyle ?? this.indexStyle,
  );
}