copyWith method

  1. @useResult
FBadgeStyle copyWith({
  1. BoxDecoration? decoration,
  2. FBadgeContentStyle contentStyle(
    1. FBadgeContentStyle
    )?,
})

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

Where possible, it is strongly recommended to use the CLI to generate a style and directly modify the style.

decoration

The decoration.

contentStyle

The content's style.

Implementation

@useResult
FBadgeStyle copyWith({BoxDecoration? decoration, FBadgeContentStyle Function(FBadgeContentStyle)? contentStyle}) =>
    FBadgeStyle(
      decoration: decoration ?? this.decoration,
      contentStyle: contentStyle != null ? contentStyle(this.contentStyle) : this.contentStyle,
    );