AnimatedListView constructor

const AnimatedListView({
  1. required List<Widget> children,
  2. Key? key,
  3. double spaceBetween = 10,
  4. double extendedSpaceBetween = 30,
  5. int duration = 200,
  6. Axis scrollDirection = Axis.vertical,
  7. bool reverse = false,
  8. ScrollController? controller,
  9. bool primary = false,
  10. ScrollPhysics? physics,
  11. bool shrinkWrap = false,
  12. EdgeInsetsGeometry? padding,
  13. double? itemExtent,
  14. bool addAutomaticKeepAlives = true,
  15. bool addRepaintBoundaries = true,
  16. bool addSemanticIndexes = true,
  17. double? cacheExtent,
  18. Widget? prototypeItem,
  19. int? semanticChildCount,
  20. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  21. ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
  22. String? restorationId,
  23. Clip clipBehavior = Clip.hardEdge,
  24. ScrollBehavior? scrollBehavior,
  25. Key? center,
  26. double anchor = 0.0,
})

Implementation

const AnimatedListView({
  required this.children,
  Key? key,
  this.spaceBetween = 10,
  this.extendedSpaceBetween = 30,
  this.duration = 200,
  this.scrollDirection = Axis.vertical,
  this.reverse = false,
  this.controller,
  this.primary = false,
  this.physics,
  this.shrinkWrap = false,
  this.padding,
  this.itemExtent,
  this.addAutomaticKeepAlives = true,
  this.addRepaintBoundaries = true,
  this.addSemanticIndexes = true,
  this.cacheExtent,
  this.prototypeItem,
  this.semanticChildCount,
  this.dragStartBehavior = DragStartBehavior.start,
  this.keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
  this.restorationId,
  this.clipBehavior = Clip.hardEdge,
  this.scrollBehavior,
  this.center,
  this.anchor = 0.0,
}) : super(key: key);