AnimatedListView constructor
const
AnimatedListView({
- required List<
Widget> children, - Key? key,
- double spaceBetween = 10,
- double extendedSpaceBetween = 30,
- int duration = 200,
- Axis scrollDirection = Axis.vertical,
- bool reverse = false,
- ScrollController? controller,
- bool primary = false,
- ScrollPhysics? physics,
- bool shrinkWrap = false,
- EdgeInsetsGeometry? padding,
- double? itemExtent,
- bool addAutomaticKeepAlives = true,
- bool addRepaintBoundaries = true,
- bool addSemanticIndexes = true,
- double? cacheExtent,
- Widget? prototypeItem,
- int? semanticChildCount,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
- String? restorationId,
- Clip clipBehavior = Clip.hardEdge,
- ScrollBehavior? scrollBehavior,
- Key? center,
- 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);