copyWith method

ZetaAvatarBadge copyWith({
  1. Color? color,
  2. ZetaAvatarSize? size,
  3. IconData? icon,
  4. Color? iconColor,
  5. int? value,
  6. 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,
  );
}