copyWith method
- @useResult
- Color? backgroundColor,
- Color? borderColor,
- BorderRadius? borderRadius,
- double? borderWidth,
- 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,
);