copyWith method
- @useResult
- BoxDecoration? decoration,
- FBadgeContentStyle contentStyle(
- FBadgeContentStyle style
Returns a copy of this FBadgeStyle with the given properties replaced.
Consider using the CLI to generate a style.
Parameters
- FBadgeStyle.decoration - The decoration.
- FBadgeStyle.contentStyle - The content's style.
Implementation
@useResult
FBadgeStyle copyWith({
BoxDecoration? decoration,
FBadgeContentStyle Function(FBadgeContentStyle style)? contentStyle,
}) => FBadgeStyle(
decoration: decoration ?? this.decoration,
contentStyle: contentStyle != null ? contentStyle(this.contentStyle) : this.contentStyle,
);