VirtualListView constructor

VirtualListView({
  1. required List<Widget> children,
  2. int? width,
  3. int? height,
  4. int itemExtent = 1,
  5. int? estimatedItemExtent,
  6. bool variableHeight = false,
  7. int cacheExtentItems = 0,
  8. String separator = '\n',
  9. bool handleKeys = true,
  10. bool mouseWheelEnabled = true,
  11. int mouseWheelDelta = 3,
  12. bool enableSelection = false,
  13. bool autoCopySelectionOnMouseUp = false,
  14. bool autoCopySelectionOnExit = false,
  15. bool clearSelectionAfterAutoCopy = true,
  16. ScrollController? controller,
  17. String? zoneId,
  18. DateTime nowProvider()?,
  19. 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;