copyWith method
- @useResult
- FBadgeCustomStyle? primary,
- FBadgeCustomStyle? secondary,
- FBadgeCustomStyle? outline,
- FBadgeCustomStyle? destructive,
Returns a copy of this FBadgeStyles with the given properties replaced.
Implementation
@useResult
FBadgeStyles copyWith({
FBadgeCustomStyle? primary,
FBadgeCustomStyle? secondary,
FBadgeCustomStyle? outline,
FBadgeCustomStyle? destructive,
}) =>
FBadgeStyles(
primary: primary ?? this.primary,
secondary: secondary ?? this.secondary,
outline: outline ?? this.outline,
destructive: destructive ?? this.destructive,
);