VirtualListView constructor
VirtualListView({
- required List<
Widget> children, - int? width,
- int? height,
- int itemExtent = 1,
- int? estimatedItemExtent,
- bool variableHeight = false,
- int cacheExtentItems = 0,
- String separator = '\n',
- bool handleKeys = true,
- bool mouseWheelEnabled = true,
- int mouseWheelDelta = 3,
- bool enableSelection = false,
- bool autoCopySelectionOnMouseUp = false,
- bool autoCopySelectionOnExit = false,
- bool clearSelectionAfterAutoCopy = true,
- ScrollController? controller,
- String? zoneId,
- DateTime nowProvider()?,
- Key? key,
Creates a virtualized list view.
Implementation
VirtualListView({
required List<Widget> children,
this.width,
this.height,
this.itemExtent = 1,
this.estimatedItemExtent,
this.variableHeight = false,
this.cacheExtentItems = 0,
this.separator = '\n',
this.handleKeys = true,
this.mouseWheelEnabled = true,
this.mouseWheelDelta = 3,
this.enableSelection = false,
this.autoCopySelectionOnMouseUp = false,
this.autoCopySelectionOnExit = false,
this.clearSelectionAfterAutoCopy = true,
this.controller,
this.zoneId,
DateTime Function()? nowProvider,
super.key,
}) : assert(cacheExtentItems >= 0),
_children = children,
itemBuilder = null,
itemCount = children.length,
nowProvider = nowProvider ?? _defaultNowProvider;