AnimatedRemovedItemBuilder typedef

AnimatedRemovedItemBuilder = Widget Function(BuildContext context, Animation<double> animation)

Signature for the builder callback used in AnimatedListState.removeItem and AnimatedGridState.removeItem to animate their children after they have been removed.

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

See also:

  • AnimatedItemBuilder, a builder that is for adding items with animations instead of removing them.

Implementation

typedef AnimatedRemovedItemBuilder = Widget Function(BuildContext context, Animation<double> animation);