AnimatedItemBuilder typedef Null safety

AnimatedItemBuilder = Widget Function(BuildContext context, int index, Animation<double> animation)

Signature for the builder callback used by AnimatedList & AnimatedGrid to build their animated children.

The context argument is the build context where the widget will be created, the index is the index of the item to be built, and the animation is an Animation that should be used to animate an entry transition for the widget that is built.

See also:

Implementation

typedef AnimatedItemBuilder = Widget Function(BuildContext context, int index, Animation<double> animation);