SliverAnimatedList constructor

const SliverAnimatedList({
  1. Key? key,
  2. required AnimatedItemBuilder itemBuilder,
  3. ChildIndexGetter? findChildIndexCallback,
  4. int initialItemCount = 0,
})

Creates a SliverList that animates items when they are inserted or removed.

Implementation

const SliverAnimatedList({
  super.key,
  required super.itemBuilder,
  super.findChildIndexCallback,
  super.initialItemCount = 0,
}) : assert(initialItemCount >= 0);