SliverAnimatedGrid constructor
- Key? key,
- required AnimatedItemBuilder itemBuilder,
- required SliverGridDelegate gridDelegate,
- ChildIndexGetter? findChildIndexCallback,
- int initialItemCount = 0,
Creates a SliverGrid that animates items when they are inserted or removed.
Implementation
const SliverAnimatedGrid({
super.key,
required super.itemBuilder,
required this.gridDelegate,
super.findChildIndexCallback,
super.initialItemCount = 0,
}) : assert(initialItemCount >= 0);