interpolated method

Widget interpolated({
  1. required Widget to(
    1. BuildContext context,
    2. double animatedValue
    ),
  2. Duration duration = const Duration(milliseconds: 500),
  3. 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,
  );
}