VelocitySpringWidgetBuilder typedef

VelocitySpringWidgetBuilder = Widget Function(BuildContext context, double value, double velocity, Widget? child)

Signature for the builder callback used by VelocitySpringBuilder.

Called on every animation frame. velocity is in units per second; useful for secondary motion effects that react to the spring's momentum.

Implementation

typedef VelocitySpringWidgetBuilder = Widget Function(
  BuildContext context,
  double value,
  double velocity,
  Widget? child,
);