AnimationBuilder typedef
AnimationBuilder =
Widget Function(BuildContext context, Animation<double> animation, Widget? child)
A callback function that takes a custom animation builder.
Implementation
typedef AnimationBuilder = Widget Function(
BuildContext context, // the build context
Animation<double> animation, // the current animation progress (0.0 to 1.0)
Widget? child, // the child widget to animate
);