AuiChip constructor

const AuiChip({
  1. Key? key,
  2. required String label,
  3. Widget? avatar,
  4. VoidCallback? onTap,
  5. VoidCallback? onDelete,
  6. bool selected = false,
  7. Color? color,
  8. TextStyle? labelStyle,
  9. EdgeInsetsGeometry? padding,
  10. bool disabled = false,
})

Creates a filled AuiChip with a solid colour background.

Implementation

const AuiChip({
  super.key,
  required this.label,
  this.avatar,
  this.onTap,
  this.onDelete,
  this.selected = false,
  this.color,
  this.labelStyle,
  this.padding,
  this.disabled = false,
}) : _variant = _AuiChipVariant.filled;