createRoute method
- BuildContext context
override
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 _CupertinoPageRoute(
settings: this,
pageBuilder: (_, _, _) => child,
instant: !context.isNarrow,
);
}