USegmentedControl<T> constructor

const USegmentedControl<T>({
  1. required Map<T, Widget> children,
  2. required T initialValue,
  3. required ValueChanged<T> onValueChanged,
  4. Key? key,
  5. Duration duration = const Duration(milliseconds: 300),
  6. Curve curve = Curves.easeInOut,
  7. bool isStretch = true,
  8. BoxDecoration? decoration,
  9. BoxDecoration? thumbDecoration,
  10. EdgeInsets padding = const EdgeInsets.all(8),
  11. double innerPadding = 8.0,
  12. double? height,
  13. double? width,
  14. TextStyle? selectedTextStyle,
  15. TextStyle? unselectedTextStyle,
})

Implementation

const USegmentedControl({
  required this.children,
  required this.initialValue,
  required this.onValueChanged,
  super.key,
  this.duration = const Duration(milliseconds: 300),
  this.curve = Curves.easeInOut,
  this.isStretch = true,
  this.decoration,
  this.thumbDecoration,
  this.padding = const EdgeInsets.all(8),
  this.innerPadding = 8.0,
  this.height,
  this.width,
  this.selectedTextStyle,
  this.unselectedTextStyle,
});