copyWith method
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,
);