routes property

Map<String, Widget Function(BuildContext)> routes
getter/setter pair

These routes are the main routes of the OkitoMaterialApp or OkitoCupertinoApp, we don't do any change here, we just save it.

The reason of saving here is dynamic routing in onGenerateRoute;

Implementation

Map<String, Widget Function(BuildContext)> routes =
    const <String, WidgetBuilder>{};