InfiniteList constructor

InfiniteList({
  1. Key? key,
  2. required ItemBuilder<int> builder,
  3. ScrollController? controller,
  4. InfiniteListDirection direction = InfiniteListDirection.single,
  5. int? posChildCount,
  6. int? negChildCount,
  7. double anchor = 0.0,
  8. double? cacheExtent,
  9. Axis scrollDirection = Axis.vertical,
  10. 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);