copyWith method
ComponentStatesColor
copyWith({
- Color? focusBorderColor,
- Color? hoverColor,
- Color? hoverBackgroundColor,
- Color? errorTextColor,
- Color? disabledBackgroundColor,
- Color? disabledColor,
Create a copy of the state color.
Implementation
ComponentStatesColor copyWith({
Color? focusBorderColor,
Color? hoverColor,
Color? hoverBackgroundColor,
Color? errorTextColor,
Color? disabledBackgroundColor,
Color? disabledColor,
}) => ComponentStatesColor(
focusBorderColor: focusBorderColor ?? this.focusBorderColor,
hoverColor: hoverColor ?? this.hoverColor,
hoverBackgroundColor: hoverBackgroundColor ?? this.hoverBackgroundColor,
errorTextColor: errorTextColor ?? this.errorTextColor,
disabledBackgroundColor:
disabledBackgroundColor ?? this.disabledBackgroundColor,
disabledColor: disabledColor ?? this.disabledColor,
);