ListView constructor

ListView({
  1. List<Widget> children = const <Widget>[],
  2. String separator = '\n',
  3. ScrollController? controller,
  4. EdgeInsets? padding,
  5. bool handleKeys = true,
  6. int mouseWheelDelta = 3,
  7. Key? key,
})

Creates a list view that keeps child widgets mounted.

Implementation

ListView({
  List<Widget> children = const <Widget>[],
  this.separator = '\n',
  this.controller,
  this.padding,
  this.handleKeys = true,
  this.mouseWheelDelta = 3,
  super.key,
}) : _children = children,
     itemBuilder = null,
     separatorBuilder = null,
     itemCount = children.length;