SelectorWheel<T> constructor
const
SelectorWheel<T> ({
- Key? key,
- int? selectedItemIndex,
- double width = 80.0,
- int? childCount,
- double childHeight = 36.0,
- required SelectorWheelValue<
T> convertIndexToValue(- int index
- required void onValueChanged(
- SelectorWheelValue<
T> value
- SelectorWheelValue<
- bool enableFadeOut = true,
- double fadeOutHeightFraction = 0.36,
- bool enableHapticFeedback = true,
- BorderRadiusGeometry? highlightBorderRadius,
- double? highlightHeight,
- double? highlightWidth,
- double? perspective,
- double? diameterRatio,
Implementation
const SelectorWheel({
super.key,
this.selectedItemIndex,
this.width = 80.0,
this.childCount,
this.childHeight = 36.0,
required this.convertIndexToValue,
required this.onValueChanged,
this.enableFadeOut = true,
this.fadeOutHeightFraction = 0.36,
this.enableHapticFeedback = true,
this.highlightBorderRadius,
this.highlightHeight,
this.highlightWidth,
this.perspective,
this.diameterRatio,
}) : assert(fadeOutHeightFraction >= 0.0 && fadeOutHeightFraction <= 1.0);