copyWith method

  1. @useResult
FButtonCustomStyle copyWith({
  1. BoxDecoration? enabledBoxDecoration,
  2. BoxDecoration? disabledBoxDecoration,
  3. FButtonContentStyle? content,
  4. FButtonIconStyle? icon,
  5. FButtonIconContentStyle? iconContent,
})

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

Implementation

@useResult
FButtonCustomStyle copyWith({
  BoxDecoration? enabledBoxDecoration,
  BoxDecoration? disabledBoxDecoration,
  FButtonContentStyle? content,
  FButtonIconStyle? icon,
  FButtonIconContentStyle? iconContent,
}) =>
    FButtonCustomStyle(
      enabledBoxDecoration: enabledBoxDecoration ?? this.enabledBoxDecoration,
      disabledBoxDecoration: disabledBoxDecoration ?? this.disabledBoxDecoration,
      content: content ?? this.content,
      icon: icon ?? this.icon,
      iconContent: iconContent ?? this.iconContent,
    );