SelectorSingleWidget constructor
const
SelectorSingleWidget({
- Key? key,
- required List<
SelectorItem> list, - required double height,
- required double radius,
- required double itemExtent,
- required double padding,
- required double textSize,
- required String textLeft,
- required String textRight,
- required Color textColor,
- required Color textColorLeft,
- required Color textColorRight,
- required Color lineColor,
- required Color backgroundColor,
- required int position,
- required dynamic callBack(
- SelectorItem item,
- int position
- double? diameterRatio,
- double? offAxisFraction,
- double? magnification,
- double? squeeze,
- Widget? selectionOverlay,
- GestureTapCallback? onTapLeft,
- 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);