copyWith method

Implementation

HubbleButtonStyle copyWith({
  HubbleButtonStateVariant<Color>? color,
  BorderRadius? radius,
  HubbleButtonStateVariant<TextStyle>? textStyle,
  EdgeInsets? padding,
  double? height,
  HubbleButtonStateVariant<Border>? border,
}) {
  return HubbleButtonStyle(
    color: color ?? this.color,
    radius: radius ?? this.radius,
    textStyle: textStyle ?? this.textStyle,
    padding: padding ?? this.padding,
    height: height ?? this.height,
    border: border ?? this.border,
  );
}