modular method
Implementation
CupertinoApp modular() {
_routerDelegate.setObserver(navigatorObservers ?? <NavigatorObserver>[]);
_modularFlags.isCupertino = true;
initialRouteDeclaratedInMaterialApp = initialRoute ?? '/';
final app = CupertinoApp.router(
key: key,
routeInformationProvider: routeInformationProvider,
backButtonDispatcher: backButtonDispatcher,
builder: builder,
title: title,
onGenerateTitle: onGenerateTitle,
color: color,
theme: theme,
locale: locale,
localizationsDelegates: localizationsDelegates,
localeListResolutionCallback: localeListResolutionCallback,
localeResolutionCallback: localeResolutionCallback,
supportedLocales: supportedLocales,
showPerformanceOverlay: showPerformanceOverlay,
checkerboardRasterCacheImages: checkerboardRasterCacheImages,
checkerboardOffscreenLayers: checkerboardOffscreenLayers,
showSemanticsDebugger: showSemanticsDebugger,
debugShowCheckedModeBanner: debugShowCheckedModeBanner,
shortcuts: shortcuts,
actions: actions,
restorationScopeId: restorationScopeId,
routeInformationParser: _routeInformationParser,
routerDelegate: _routerDelegate,
);
return app;
}