SmoothSegmentedControl<T> constructor
const
SmoothSegmentedControl<T>({ - required T currentValue,
- required List<String> labels,
- required ValueChanged<T> onValueChanged,
- required List<T> values,
- Color? backgroundColor,
- Color? selectedTextColor,
- Color? unselectedTextColor,
- Key? key,
})
Implementation
const SmoothSegmentedControl({
required this.currentValue,
required this.labels,
required this.onValueChanged,
required this.values,
this.backgroundColor,
this.selectedTextColor,
this.unselectedTextColor,
super.key,
}) : assert(
labels.length == values.length,
'Labels and values must have the same length',
);