ZetaSegmentedControl<T> constructor

const ZetaSegmentedControl<T>({
  1. bool? rounded,
  2. Key? key,
  3. required List<ZetaButtonSegment<T>> segments,
  4. required void onChanged(
    1. T
    )?,
  5. required T selected,
  6. String? semanticLabel,
})

Constructs an segmented control bar.

Implementation

const ZetaSegmentedControl({
  super.rounded,
  super.key,
  required this.segments,
  required this.onChanged,
  required this.selected,
  this.semanticLabel,
});