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<T> createRoute(BuildContext context) => _RetroDesktopPageRoute<T>(
settings: this,
motion: RetroDesktopMotion.of(context),
pageBuilder: (context, animation, secondaryAnimation) {
final page = ModalRoute.of(context)?.settings;
return ColoredBox(
color: RetroDesktopTheme.of(context).colors.desktop,
child: page is RetroDesktopPage<T> ? page.child : child,
);
},
);