copyWith method

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

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

Implementation

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