copyWith method

  1. @useResult
FBadgeStyle copyWith({
  1. BoxDecoration? decoration,
  2. FBadgeContentStyle contentStyle(
    1. FBadgeContentStyle style
    )?,
})

Returns a copy of this FBadgeStyle with the given properties replaced.

Consider using the CLI to generate a style.

Parameters

Implementation

@useResult
FBadgeStyle copyWith({
  BoxDecoration? decoration,
  FBadgeContentStyle Function(FBadgeContentStyle style)? contentStyle,
}) => FBadgeStyle(
  decoration: decoration ?? this.decoration,
  contentStyle: contentStyle != null ? contentStyle(this.contentStyle) : this.contentStyle,
);