AnimatedList constructor
- Key? key,
- required AnimatedItemBuilder itemBuilder,
- int initialItemCount = 0,
- Axis scrollDirection = Axis.vertical,
- bool reverse = false,
- ScrollController? controller,
- bool? primary,
- ScrollPhysics? physics,
- bool shrinkWrap = false,
- EdgeInsetsGeometry? padding,
- Clip clipBehavior = Clip.hardEdge,
Creates a scrolling container that animates items when they are inserted or removed.
Implementation
const AnimatedList({
super.key,
required super.itemBuilder,
super.initialItemCount = 0,
super.scrollDirection = Axis.vertical,
super.reverse = false,
super.controller,
super.primary,
super.physics,
super.shrinkWrap = false,
super.padding,
super.clipBehavior = Clip.hardEdge,
}) : assert(initialItemCount >= 0);