USegmentedControl<T extends Object> constructor
const
USegmentedControl<T extends Object> ({
- required Map<
T, String> items, - required T? selectedValue,
- required ValueChanged<
T?> onValueChanged, - Key? key,
- SegmentedStyle style = SegmentedStyle.platformDefault,
- EdgeInsetsGeometry? padding,
- Color? selectedColor,
- Color? unselectedColor,
- Color? backgroundColor,
- bool enabled = true,
Implementation
const USegmentedControl({
required this.items,
required this.selectedValue,
required this.onValueChanged,
super.key,
this.style = SegmentedStyle.platformDefault,
this.padding,
this.selectedColor,
this.unselectedColor,
this.backgroundColor,
this.enabled = true,
});