AnimatedGrid constructor

const AnimatedGrid({
  1. Key? key,
  2. required AnimatedItemBuilder itemBuilder,
  3. required SliverGridDelegate gridDelegate,
  4. int initialItemCount = 0,
  5. Axis scrollDirection = Axis.vertical,
  6. bool reverse = false,
  7. ScrollController? controller,
  8. bool? primary,
  9. ScrollPhysics? physics,
  10. EdgeInsetsGeometry? padding,
  11. 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);