animate abstract method
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);