createRoute method
Creates the Route that corresponds to this page.
The created Route must have its Route.settings property set to this Page.
Implementation
@override
Route createRoute(BuildContext context) {
return PageRouteBuilder(
settings: this,
transitionDuration: Duration.zero,
pageBuilder: (_, anime1, anime2) => child,
);
}