AnimatedTransitionBuilder typedef
Builder callback used by DualTransitionBuilder.
The builder is expected to return a transition powered by the provided
animation and wrapping the provided child.
The animation provided to the builder always runs forward from 0.0 to 1.0.
An optional child widget which represents a pre-built widget subtree that
does not depend on the animation's value.
Passing a pre-built widget here and incorporating it into the returned widget tree avoids rebuilding it for every frame of the animation and can improve performance significantly in some cases.
Implementation
typedef AnimatedTransitionBuilder =
Widget Function(BuildContext context, Animation<double> animation, Widget? child);