copyWith method

  1. @useResult
FBadgeStyles copyWith({
  1. FBadgeCustomStyle? primary,
  2. FBadgeCustomStyle? secondary,
  3. FBadgeCustomStyle? outline,
  4. 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,
    );