KareeMaterialApp constructor

KareeMaterialApp({
  1. Key? key,
  2. Map<String, WidgetBuilder> routes = const <String, WidgetBuilder>{},
  3. List<NavigatorObserver> navigatorObservers = const <NavigatorObserver>[],
  4. String title = '',
  5. GenerateAppTitle? onGenerateTitle,
  6. Color? color,
  7. ThemeData? theme,
  8. ThemeData? darkTheme,
  9. ThemeMode themeMode = ThemeMode.system,
  10. Locale? locale,
  11. Iterable<LocalizationsDelegate>? localizationsDelegates,
  12. LocaleListResolutionCallback? localeListResolutionCallback,
  13. LocaleResolutionCallback? localeResolutionCallback,
  14. Iterable<Locale> supportedLocales = const <Locale>[Locale('en', 'US')],
  15. bool debugShowMaterialGrid = false,
  16. bool showPerformanceOverlay = false,
  17. bool checkerboardRasterCacheImages = false,
  18. bool checkerboardOffscreenLayers = false,
  19. bool showSemanticsDebugger = false,
  20. bool debugShowCheckedModeBanner = true,
  21. Map<LogicalKeySet, Intent>? shortcuts,
  22. KareeInstanceProfile profile = KareeInstanceProfile.development,
  23. ErrorContactAddress? errorContactAddress,
})

Implementation

KareeMaterialApp(
    {Key? key,
    this.routes = const <String, WidgetBuilder>{},
    this.navigatorObservers = const <NavigatorObserver>[],
    this.title = '',
    this.onGenerateTitle,
    this.color,
    this.theme,
    this.darkTheme,
    this.themeMode = ThemeMode.system,
    this.locale,
    this.localizationsDelegates,
    this.localeListResolutionCallback,
    this.localeResolutionCallback,
    this.supportedLocales = const <Locale>[Locale('en', 'US')],
    this.debugShowMaterialGrid = false,
    this.showPerformanceOverlay = false,
    this.checkerboardRasterCacheImages = false,
    this.checkerboardOffscreenLayers = false,
    this.showSemanticsDebugger = false,
    this.debugShowCheckedModeBanner = true,
    this.shortcuts,
    this.profile = KareeInstanceProfile.development,
    this.errorContactAddress}){

      assert(profile == KareeInstanceProfile.development || profile == KareeInstanceProfile.production && errorContactAddress != null);

      KareeMaterialApp.globalProfile = profile;
      KareeMaterialApp.globalErrorContactAddress = errorContactAddress;

    }