Chip constructor

const Chip({
  1. Key? key,
  2. required dynamic label,
  3. Widget? avatar,
  4. IconData? icon,
  5. bool selected = false,
  6. VoidCallback? onPressed,
  7. VoidCallback? onDeleted,
  8. Color? selectedColor,
  9. Color? selectedLabelColor,
  10. Color? backgroundColor,
  11. Color? labelColor,
  12. Color? borderColor,
  13. double? size,
  14. OutlinedBorder? shape,
  15. BorderSide? side,
  16. EdgeInsetsGeometry? padding,
})

Implementation

const Chip({
  super.key,
  required this.label,
  this.avatar,
  this.icon,
  this.selected = false,
  this.onPressed,
  this.onDeleted,
  this.selectedColor,
  this.selectedLabelColor,
  this.backgroundColor,
  this.labelColor,
  this.borderColor,
  this.size,
  this.shape,
  this.side,
  this.padding,
});