copyWith method
- @useResult
- DecorationDelta? decoration,
- FBadgeContentStyleDelta? contentStyle,
Returns a copy of this FBadgeStyle with the given properties replaced.
See customizing widget styles.
Parameters
- FBadgeStyle.decoration - The decoration.
- FBadgeStyle.contentStyle - The content's style.
Implementation
@useResult
FBadgeStyle copyWith({DecorationDelta? decoration, FBadgeContentStyleDelta? contentStyle}) => .new(
decoration: decoration?.call(this.decoration) ?? this.decoration,
contentStyle: contentStyle?.call(this.contentStyle) ?? this.contentStyle,
);