ScrollWheelInfinite<T> constructor

ScrollWheelInfinite<T>({
  1. Key? key,
  2. required List<T> items,
  3. TextStyle? textStyle,
  4. Color? color,
  5. double itemExtent = 20,
  6. double magnification = 1.2,
  7. bool useMagnifier = true,
  8. double diameterRatio = RenderListWheelViewport.defaultDiameterRatio,
  9. required double width,
  10. double height = 60,
  11. Duration? notificationDelay,
  12. required ValueSetter<T> onChange,
})

Implementation

ScrollWheelInfinite({
  Key? key,
  required this.items,
  this.textStyle,
  this.color,
  this.itemExtent = 20,
  this.magnification = 1.2,
  this.useMagnifier = true,
  this.diameterRatio = RenderListWheelViewport.defaultDiameterRatio,
  required this.width,
  this.height = 60,
  Duration? notificationDelay,
  required ValueSetter<T> onChange,
}) : super(key: key) {
  notificationDelay ??= const Duration(milliseconds: 100);
  _delayedValue = DelayedValue<T>(delay: notificationDelay, callback: onChange);
}