SelectorSingleWidget constructor

const SelectorSingleWidget({
  1. Key? key,
  2. required List<SelectorItem> list,
  3. required double height,
  4. required double radius,
  5. required double itemExtent,
  6. required double padding,
  7. required double textSize,
  8. required String textLeft,
  9. required String textRight,
  10. required Color textColor,
  11. required Color textColorLeft,
  12. required Color textColorRight,
  13. required Color lineColor,
  14. required Color backgroundColor,
  15. required int position,
  16. required dynamic callBack(
    1. SelectorItem item,
    2. int position
    ),
  17. double? diameterRatio,
  18. double? offAxisFraction,
  19. double? magnification,
  20. double? squeeze,
  21. Widget? selectionOverlay,
  22. GestureTapCallback? onTapLeft,
  23. GestureTapCallback? onTapRight,
})

Implementation

const SelectorSingleWidget(
    {Key? key,
    required this.list,
    required this.height,
    required this.radius,
    required this.itemExtent,
    required this.padding,
    required this.textSize,
    required this.textLeft,
    required this.textRight,
    required this.textColor,
    required this.textColorLeft,
    required this.textColorRight,
    required this.lineColor,
    required this.backgroundColor,
    required this.position,
    required this.callBack,
    this.diameterRatio,
    this.offAxisFraction,
    this.magnification,
    this.squeeze,
    this.selectionOverlay,
    this.onTapLeft,
    this.onTapRight})
    : super(key: key);