copyWith method
- Color? color,
- ZetaAvatarSize? size,
- IconData? icon,
- Color? iconColor,
- int? value,
- ZetaAvatarBadgeType? type,
Returns copy of ZetaAvatarBadge
Implementation
ZetaAvatarBadge copyWith({
Color? color,
ZetaAvatarSize? size,
IconData? icon,
Color? iconColor,
int? value,
ZetaAvatarBadgeType? type,
}) {
return ZetaAvatarBadge._(
color: color ?? this.color,
size: size ?? this.size,
icon: icon ?? this.icon,
type: type ?? this.type,
value: value ?? this.value,
iconColor: iconColor ?? this.iconColor,
key: key,
);
}