copyWith method

  1. @useResult
FBadgeCustomStyle copyWith({
  1. Color? backgroundColor,
  2. Color? borderColor,
  3. BorderRadius? borderRadius,
  4. double? borderWidth,
  5. FBadgeContentStyle? contentStyle,
})

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

Implementation

@useResult
FBadgeCustomStyle copyWith({
  Color? backgroundColor,
  Color? borderColor,
  BorderRadius? borderRadius,
  double? borderWidth,
  FBadgeContentStyle? contentStyle,
}) =>
    FBadgeCustomStyle(
      backgroundColor: backgroundColor ?? this.backgroundColor,
      borderColor: borderColor ?? this.borderColor,
      borderRadius: borderRadius ?? this.borderRadius,
      borderWidth: borderWidth ?? this.borderWidth,
      contentStyle: contentStyle ?? this.contentStyle,
    );