NiceBadge constructor

const NiceBadge({
  1. Key? key,
  2. required String label,
  3. Color? color,
  4. NiceBadgeVariant variant = NiceBadgeVariant.filled,
  5. NiceBadgeSize size = NiceBadgeSize.medium,
  6. IconData? icon,
  7. bool removable = false,
  8. VoidCallback? onRemove,
  9. VoidCallback? onTap,
})

Implementation

const NiceBadge({
  super.key,
  required this.label,
  this.color,
  this.variant = NiceBadgeVariant.filled,
  this.size = NiceBadgeSize.medium,
  this.icon,
  this.removable = false,
  this.onRemove,
  this.onTap,
});