interpolated method
- required Widget to(
- BuildContext context,
- double animatedValue
- Duration duration = const Duration(milliseconds: 500),
- Curve curve = Curves.easeOutCubic,
Create an AnimatedValueSlot that interpolates the numeric value.
Implementation
Widget interpolated({
required Widget Function(BuildContext context, double animatedValue) to,
Duration duration = const Duration(milliseconds: 500),
Curve curve = Curves.easeOutCubic,
}) {
return AnimatedValueSlot<T>(
connect: this,
to: to,
duration: duration,
curve: curve,
);
}