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