copyWith method

ComponentStatesColor copyWith({
  1. Color? focusColor,
  2. Color? hoverColor,
  3. Color? hoverBackgroundColor,
  4. Color? errorTextColor,
  5. Color? disabledBackgroundColor,
  6. Color? disabledColor,
})

Create a copy of the state color.

Implementation

ComponentStatesColor copyWith({
  Color? focusColor,
  Color? hoverColor,
  Color? hoverBackgroundColor,
  Color? errorTextColor,
  Color? disabledBackgroundColor,
  Color? disabledColor,
}) => ComponentStatesColor(
  focusColor: focusColor ?? this.focusColor,
  hoverColor: hoverColor ?? this.hoverColor,
  hoverBackgroundColor: hoverBackgroundColor ?? this.hoverBackgroundColor,
  errorTextColor: errorTextColor ?? this.errorTextColor,
  disabledBackgroundColor:
      disabledBackgroundColor ?? this.disabledBackgroundColor,
  disabledColor: disabledColor ?? this.disabledColor,
);