SelectorWheel<T> constructor

const SelectorWheel<T>({
  1. Key? key,
  2. int? selectedItemIndex,
  3. double width = 80.0,
  4. int? childCount,
  5. double childHeight = 36.0,
  6. required SelectorWheelValue<T> convertIndexToValue(
    1. int index
    ),
  7. required void onValueChanged(
    1. SelectorWheelValue<T> value
    ),
  8. bool enableFadeOut = true,
  9. double fadeOutHeightFraction = 0.36,
  10. bool enableHapticFeedback = true,
  11. BorderRadiusGeometry? highlightBorderRadius,
  12. double? highlightHeight,
  13. double? highlightWidth,
  14. double? perspective,
  15. 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);