GlassSegment<T> constructor

const GlassSegment<T>({
  1. required T value,
  2. required String label,
  3. IconData? icon,
})

Creates a choice that stands for value and reads label.

Implementation

const GlassSegment({required this.value, required this.label, this.icon});