InfiniteList constructor
InfiniteList({
- Key? key,
- required ItemBuilder<
int> builder, - ScrollController? controller,
- InfiniteListDirection direction = InfiniteListDirection.single,
- int? posChildCount,
- int? negChildCount,
- double anchor = 0.0,
- double? cacheExtent,
- Axis scrollDirection = Axis.vertical,
- ScrollPhysics? physics,
Implementation
InfiniteList({
Key? key,
required this.builder,
this.controller,
this.direction = InfiniteListDirection.single,
this.posChildCount,
this.negChildCount,
//this.reverse = false,
this.anchor = 0.0,
this.cacheExtent,
this.scrollDirection = Axis.vertical,
this.physics,
}) : _centerKey = (direction == InfiniteListDirection.multi)
? const ValueKey<String>('center-key')
: null,
super(key: key);