AnimatedList constructor Null safety
- {Key? key,
- required AnimatedListItemBuilder 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 this.itemBuilder,
this.initialItemCount = 0,
this.scrollDirection = Axis.vertical,
this.reverse = false,
this.controller,
this.primary,
this.physics,
this.shrinkWrap = false,
this.padding,
this.clipBehavior = Clip.hardEdge,
}) : assert(itemBuilder != null),
assert(initialItemCount != null && initialItemCount >= 0);