copyWith method

  1. @useResult
FButtonCustomStyle copyWith({
  1. BoxDecoration? enabledBoxDecoration,
  2. BoxDecoration? enabledHoverBoxDecoration,
  3. BoxDecoration? disabledBoxDecoration,
  4. FFocusedOutlineStyle? focusedOutlineStyle,
  5. FButtonContentStyle? contentStyle,
  6. FButtonIconContentStyle? iconContentStyle,
  7. FButtonSpinnerStyle? spinnerStyle,
})

Returns a copy of this FButtonCustomStyle with the given properties replaced.

Implementation

@useResult
FButtonCustomStyle copyWith({
  BoxDecoration? enabledBoxDecoration,
  BoxDecoration? enabledHoverBoxDecoration,
  BoxDecoration? disabledBoxDecoration,
  FFocusedOutlineStyle? focusedOutlineStyle,
  FButtonContentStyle? contentStyle,
  FButtonIconContentStyle? iconContentStyle,
  FButtonSpinnerStyle? spinnerStyle,
}) =>
    FButtonCustomStyle(
      enabledBoxDecoration: enabledBoxDecoration ?? this.enabledBoxDecoration,
      enabledHoverBoxDecoration: enabledHoverBoxDecoration ?? this.enabledHoverBoxDecoration,
      disabledBoxDecoration: disabledBoxDecoration ?? this.disabledBoxDecoration,
      focusedOutlineStyle: focusedOutlineStyle ?? this.focusedOutlineStyle,
      contentStyle: contentStyle ?? this.contentStyle,
      iconContentStyle: iconContentStyle ?? this.iconContentStyle,
      spinnerStyle: spinnerStyle ?? this.spinnerStyle,
    );