copyWith method

ButtonStyle copyWith({
  1. String? backgroundColor,
  2. String? disabledColor,
  3. TextStyle? textStyle,
  4. BoxBorder? border,
  5. String? hoverColor,
})

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,
  );
}