SingleChoiceSegmentedControl<T> constructor
const
SingleChoiceSegmentedControl<T> ({})
Implementation
const SingleChoiceSegmentedControl({
super.key,
required this.values,
required this.labels,
required this.icons,
required this.selected,
this.onSelectionChanged,
this.backgroundColor = AppColors.blue,
}) : assert(values.length == labels.length && labels.length == icons.length,
'Values, labels, and icons lists must have the same length');