ListView.builder constructor

const ListView.builder({
  1. Key? key,
  2. String? style,
  3. String? classAttribute,
  4. LayoutType layoutType = LayoutType.contain,
  5. Axis scrollDirection = Axis.vertical,
  6. int? itemCount,
  7. required IndexedWidgetBuilder? itemBuilder,
})

Creates a scrollable, linear array of widgets that are created on demand.

This constructor is appropriate for list views with a large (or infinite) number of children.

Implementation

const ListView.builder({
  Key? key,
  this.style,
  this.classAttribute,
  this.layoutType = LayoutType.contain,
  this.scrollDirection = Axis.vertical,
  this.itemCount,
  required this.itemBuilder,
})  : isListViewBuilder = true,
      children = const <Widget>[],
      super(key: key);