AnimatedChildBuilder<T> typedef
AnimatedChildBuilder<T> =
Widget Function(BuildContext context, T value, Widget? child)
A callback that builds a widget based on an animated value and optional child.
Used by AnimatedValueBuilder to construct the widget tree during animation.
The value
parameter contains the current interpolated value between start and end,
while child
is an optional widget that can be passed through for optimization.
Implementation
typedef AnimatedChildBuilder<T> = Widget Function(
BuildContext context, T value, Widget? child);