ListWheelState.list constructor
const
ListWheelState.list({
- Key? key,
- FixedExtentScrollController? controller,
- ValueChanged<
int> ? onScrollEnd, - required List<
Widget> ? children, - NotificationListenerCallback<
ScrollNotification> ? onNotification, - ValueChanged<
int> ? onScrollStart, - ValueChanged<
int> ? onScrollUpdate, - WheelOptions? options,
- bool disposeController = true,
- int initialItem = 0,
- ValueCallback<
FixedExtentScrollController> ? onCreateController, - Duration animateDuration = const Duration(milliseconds: 10),
- Curve curve = Curves.linear,
Implementation
const ListWheelState.list({
super.key,
this.controller,
this.onScrollEnd,
required this.children,
this.onNotification,
this.onScrollStart,
this.onScrollUpdate,
this.options,
this.disposeController = true,
this.initialItem = 0,
this.onCreateController,
this.animateDuration = const Duration(milliseconds: 10),
this.curve = Curves.linear,
}) : assert(children != null),
childDelegateType = ListWheelChildDelegateType.list,
itemBuilder = null,
itemCount = null;