SliverAnimatedGrid constructor

const SliverAnimatedGrid({
  1. Key? key,
  2. required AnimatedItemBuilder itemBuilder,
  3. required SliverGridDelegate gridDelegate,
  4. ChildIndexGetter? findChildIndexCallback,
  5. 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);