ListBuilder<T> constructor
const
ListBuilder<T> ({
- Key? key,
- Axis scrollDirection = Axis.vertical,
- bool reverse = false,
- ScrollController? controller,
- bool? primary,
- ScrollPhysics? physics,
- bool shrinkWrap = false,
- EdgeInsetsGeometry? padding,
- List<
Widget> ? top, - List<
Widget> ? insert, - int insertPosition = 0,
- List<
Widget> ? bottom, - double? itemExtent,
- required List<
T> source, - required List<
Widget> ? builder(- BuildContext context,
- T item
- bool addAutomaticKeepAlives = true,
- bool addRepaintBoundaries = true,
- bool addSemanticIndexes = true,
- double? cacheExtent,
- int? semanticChildCount,
- bool listenWhenListenable = true,
- bool loading(
- T item
- double loadingOpacity = 0.25,
- Color? indicatorColor,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
- String? restorationId,
- Clip clipBehavior = Clip.hardEdge,
Implementation
const ListBuilder({
Key? key,
this.scrollDirection = Axis.vertical,
this.reverse = false,
this.controller,
this.primary,
this.physics,
this.shrinkWrap = false,
this.padding,
this.top,
this.insert,
this.insertPosition = 0,
this.bottom,
this.itemExtent,
required this.source,
required this.builder,
this.addAutomaticKeepAlives = true,
this.addRepaintBoundaries = true,
this.addSemanticIndexes = true,
this.cacheExtent,
this.semanticChildCount,
this.listenWhenListenable = true,
this.loading,
this.loadingOpacity = 0.25,
this.indicatorColor,
this.dragStartBehavior = DragStartBehavior.start,
this.keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
this.restorationId,
this.clipBehavior = Clip.hardEdge,
}) : _topLength = top.length,
_length = top.length + source.length + bottom.length + insert.length,
_topSourcelength = top.length + source.length + insert.length,
super(key: key);