copyWith method
- @useResult
- BoxDecoration? enabledBoxDecoration,
- BoxDecoration? enabledHoverBoxDecoration,
- BoxDecoration? disabledBoxDecoration,
- FFocusedOutlineStyle? focusedOutlineStyle,
- FButtonContentStyle? contentStyle,
- FButtonIconContentStyle? iconContentStyle,
- 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,
);