Pill constructor

const Pill({
  1. Key? key,
  2. required String label,
  3. String? value,
  4. ValueChanged<String>? onValueChanged,
})

Creates a Pill widget.

The label parameter is required. If value is null, the pill will display only the label.

Implementation

const Pill({super.key, required this.label, this.value, this.onValueChanged});