buildMaterial method
Implementation
@override
MaterialApp buildMaterial(BuildContext context) => materialAppRouterData != null
? .router(
key: materialAppRouterData?.widgetKey ?? appRouterData?.widgetKey,
routeInformationProvider:
materialAppRouterData?.routeInformationProvider ??
appRouterData?.routeInformationProvider,
routeInformationParser:
materialAppRouterData?.routeInformationParser ??
appRouterData?.routeInformationParser,
routerDelegate: materialAppRouterData?.routerDelegate ?? appRouterData?.routerDelegate,
routerConfig: materialAppRouterData?.routerConfig ?? appRouterData?.routerConfig,
backButtonDispatcher:
materialAppRouterData?.backButtonDispatcher ?? appRouterData?.backButtonDispatcher,
onNavigationNotification:
materialAppRouterData?.onNavigationNotification ??
appRouterData?.onNavigationNotification,
builder: materialAppRouterData?.builder ?? appRouterData?.builder,
title: materialAppRouterData?.title ?? appRouterData?.title,
onGenerateTitle: materialAppRouterData?.onGenerateTitle ?? appRouterData?.onGenerateTitle,
color: materialAppRouterData?.color ?? appRouterData?.color,
locale: materialAppRouterData?.locale ?? appRouterData?.locale,
localizationsDelegates:
materialAppRouterData?.localizationsDelegates ??
appRouterData?.localizationsDelegates,
localeListResolutionCallback:
materialAppRouterData?.localeListResolutionCallback ??
appRouterData?.localeListResolutionCallback,
localeResolutionCallback:
materialAppRouterData?.localeResolutionCallback ??
appRouterData?.localeResolutionCallback,
supportedLocales:
materialAppRouterData?.supportedLocales ??
appRouterData?.supportedLocales ??
kDefaultSupportedLocales,
showPerformanceOverlay:
materialAppRouterData?.showPerformanceOverlay ??
appRouterData?.showPerformanceOverlay ??
kDefaultShowPerformanceOverlay,
checkerboardRasterCacheImages:
materialAppRouterData?.checkerboardRasterCacheImages ??
appRouterData?.checkerboardRasterCacheImages ??
kDefaultCheckerboardRasterCacheImages,
checkerboardOffscreenLayers:
materialAppRouterData?.checkerboardOffscreenLayers ??
appRouterData?.checkerboardOffscreenLayers ??
kDefaultCheckerboardOffscreenLayers,
showSemanticsDebugger:
materialAppRouterData?.showSemanticsDebugger ??
appRouterData?.showSemanticsDebugger ??
kDefaultShowSemanticsDebugger,
debugShowCheckedModeBanner:
materialAppRouterData?.debugShowCheckedModeBanner ??
appRouterData?.debugShowCheckedModeBanner ??
kDefaultDebugShowCheckedModeBanner,
shortcuts: materialAppRouterData?.shortcuts ?? appRouterData?.shortcuts,
actions: materialAppRouterData?.actions ?? appRouterData?.actions,
restorationScopeId:
materialAppRouterData?.restorationScopeId ?? appRouterData?.restorationScopeId,
scrollBehavior: materialAppRouterData?.scrollBehavior ?? appRouterData?.scrollBehavior,
scaffoldMessengerKey: materialAppRouterData?.scaffoldMessengerKey,
theme: materialAppRouterData?.theme,
darkTheme: materialAppRouterData?.darkTheme,
highContrastTheme: materialAppRouterData?.highContrastTheme,
highContrastDarkTheme: materialAppRouterData?.highContrastDarkTheme,
themeMode: materialAppRouterData?.themeMode,
themeAnimationDuration:
materialAppRouterData?.themeAnimationDuration ??
kMaterialDefaultThemeAnimationDuration,
themeAnimationCurve:
materialAppRouterData?.themeAnimationCurve ?? kMaterialDefaultThemeAnimationCurve,
debugShowMaterialGrid:
materialAppRouterData?.debugShowMaterialGrid ?? kDebugShowMaterialGrid,
themeAnimationStyle: materialAppRouterData?.themeAnimationStyle,
)
: MaterialApp(
key: materialAppData?.widgetKey ?? appData?.widgetKey,
navigatorKey: materialAppData?.navigatorKey ?? appData?.navigatorKey,
home: materialAppData?.home ?? appData?.home,
routes: materialAppData?.routes ?? appData?.routes ?? AppData.kDefaultAppRoutes,
initialRoute: materialAppData?.initialRoute ?? appData?.initialRoute,
onGenerateRoute: materialAppData?.onGenerateRoute ?? appData?.onGenerateRoute,
onGenerateInitialRoutes:
materialAppData?.onGenerateInitialRoutes ?? appData?.onGenerateInitialRoutes,
onUnknownRoute: materialAppData?.onUnknownRoute ?? appData?.onUnknownRoute,
navigatorObservers:
materialAppData?.navigatorObservers ??
appData?.navigatorObservers ??
AppData.kDefaultNavigationObservers,
onNavigationNotification:
materialAppData?.onNavigationNotification ?? appData?.onNavigationNotification,
builder: materialAppData?.builder ?? appData?.builder,
title: materialAppData?.title ?? appData?.title,
onGenerateTitle: materialAppData?.onGenerateTitle ?? appData?.onGenerateTitle,
color: materialAppData?.color ?? appData?.color,
locale: materialAppData?.locale ?? appData?.locale,
localizationsDelegates:
materialAppData?.localizationsDelegates ?? appData?.localizationsDelegates,
localeListResolutionCallback:
materialAppData?.localeListResolutionCallback ??
appData?.localeListResolutionCallback,
localeResolutionCallback:
materialAppData?.localeResolutionCallback ?? appData?.localeResolutionCallback,
supportedLocales:
materialAppData?.supportedLocales ??
appData?.supportedLocales ??
kDefaultSupportedLocales,
showPerformanceOverlay:
materialAppData?.showPerformanceOverlay ??
appData?.showPerformanceOverlay ??
kDefaultShowPerformanceOverlay,
checkerboardRasterCacheImages:
materialAppData?.checkerboardRasterCacheImages ??
appData?.checkerboardRasterCacheImages ??
kDefaultCheckerboardRasterCacheImages,
checkerboardOffscreenLayers:
materialAppData?.checkerboardOffscreenLayers ??
appData?.checkerboardOffscreenLayers ??
kDefaultCheckerboardOffscreenLayers,
showSemanticsDebugger:
materialAppData?.showSemanticsDebugger ??
appData?.showSemanticsDebugger ??
kDefaultShowSemanticsDebugger,
debugShowCheckedModeBanner:
materialAppData?.debugShowCheckedModeBanner ??
appData?.debugShowCheckedModeBanner ??
kDefaultDebugShowCheckedModeBanner,
shortcuts: materialAppData?.shortcuts ?? appData?.shortcuts,
actions: materialAppData?.actions ?? appData?.actions,
restorationScopeId: materialAppData?.restorationScopeId ?? appData?.restorationScopeId,
scrollBehavior: materialAppData?.scrollBehavior ?? appData?.scrollBehavior,
scaffoldMessengerKey: materialAppData?.scaffoldMessengerKey,
theme: materialAppData?.theme,
darkTheme: materialAppData?.darkTheme,
highContrastTheme: materialAppData?.highContrastTheme,
highContrastDarkTheme: materialAppData?.highContrastDarkTheme,
themeMode: materialAppData?.themeMode,
themeAnimationDuration:
materialAppData?.themeAnimationDuration ?? kMaterialDefaultThemeAnimationDuration,
themeAnimationCurve:
materialAppData?.themeAnimationCurve ?? kMaterialDefaultThemeAnimationCurve,
debugShowMaterialGrid: materialAppData?.debugShowMaterialGrid ?? kDebugShowMaterialGrid,
themeAnimationStyle: materialAppData?.themeAnimationStyle,
);