Pill constructor

const Pill({
  1. Key? key,
  2. String label = 'Label',
  3. String? value,
  4. bool hasLabel = true,
  5. bool hasValue = true,
  6. PillSize size = PillSize.defaultSize,
  7. PillColor color = PillColor.gray,
  8. bool isSelected = false,
  9. bool isCompleted = false,
  10. bool isInteractive = true,
  11. double? horizontalPadding,
  12. VoidCallback? onTap,
})

Creates a Pill instance.

Implementation

const Pill({
  super.key,
  this.label = 'Label',
  this.value,
  this.hasLabel = true,
  this.hasValue = true,
  this.size = PillSize.defaultSize,
  this.color = PillColor.gray,
  this.isSelected = false,
  this.isCompleted = false,
  this.isInteractive = true,
  this.horizontalPadding,
  this.onTap,
});