USegmentedControl<T extends Object> constructor

const USegmentedControl<T extends Object>({
  1. required Map<T, String> items,
  2. required T? selectedValue,
  3. required ValueChanged<T?> onValueChanged,
  4. Key? key,
  5. SegmentedStyle style = SegmentedStyle.platformDefault,
  6. EdgeInsetsGeometry? padding,
  7. Color? selectedColor,
  8. Color? unselectedColor,
  9. Color? backgroundColor,
  10. 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,
});