animate abstract method

Widget animate(
  1. BuildContext context,
  2. Animation<double> animation,
  3. Animation<double> secondaryAnimation,
  4. Widget child,
)

Wraps child with the transition widgets that define how the route arrives on and leaves the screen.

animation drives the route's own entrance/exit, while secondaryAnimation drives how this route reacts to the route pushed on top of it. Both are provided by the underlying PageRoute.

Implementation

Widget animate(BuildContext context, Animation<double> animation,
    Animation<double> secondaryAnimation, Widget child);