ScrollWheel<T> constructor
ScrollWheel<T> ({
- Key? key,
- required List<
T> items, - TextStyle? textStyle,
- Color? color,
- double itemExtent = 20,
- double magnification = 1.2,
- bool useMagnifier = true,
- double diameterRatio = RenderListWheelViewport.defaultDiameterRatio,
- required double width,
- double height = 60,
- Duration? notificationDelay,
- required ValueSetter<
T> onChange,
Implementation
ScrollWheel({
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);
}