copyWith method

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

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

Implementation

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