copyWith method
Implementation
ButtonStyle copyWith({
String? backgroundColor,
String? disabledColor,
TextStyle? textStyle,
BoxBorder? border,
String? hoverColor,
}) {
return ButtonStyle(
backgroundColor: backgroundColor ?? this.backgroundColor,
disabledColor: disabledColor ?? this.disabledColor,
textStyle: textStyle ?? this.textStyle,
border: border ?? this.border,
hoverColor: hoverColor ?? this.hoverColor,
);
}