copyWith method
ComponentStatesColor
copyWith({
- Color? focusColor,
- Color? hoverColor,
- Color? hoverBackgroundColor,
- Color? errorTextColor,
- Color? disabledBackgroundColor,
- 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,
);