FastApp constructor

FastApp({
  1. Key? key,
  2. required RoutesForMediaTypeCallback routesForMediaType,
  3. Duration delayBeforeShowingLoader = kFastDelayBeforeShowingLoader,
  4. bool debugShowCheckedModeBanner = false,
  5. bool forceOnboarding = false,
  6. bool askForReview = true,
  7. DatabaseVersionChanged? onDatabaseVersionChanged,
  8. WidgetBuilder? onboardingBuilder,
  9. GlobalKey<NavigatorState>? rootNavigatorKey,
  10. IFastErrorReporter? errorReporter,
  11. String? initialLocation,
  12. List<BlocProviderSingleChildWidget>? blocProviders,
  13. FastAppLoaderBuilder? loaderBuilder,
  14. FastAppLoaderErrorBuilder? errorBuilder,
  15. Iterable<FastJob>? loaderJobs,
  16. ThemeData? lightTheme,
  17. ThemeData? darkTheme,
  18. FastAppInfoDocument? appInformation,
  19. AssetLoader? assetLoader,
  20. String? localizationPath,
  21. Locale? fallbackLocale,
  22. bool? useProIcons,
  23. bool? overrideLoaderJobs,
  24. bool? isInternetConnectionRequired,
  25. List<FastDictEntryEntity>? defaultAppDictEntries,
  26. VoidCallback? onWillRestartApp,
  27. Future onAppReady(
    1. BuildContext context
    )?,
})

Implementation

FastApp({
  super.key,
  required this.routesForMediaType,
  this.delayBeforeShowingLoader = kFastDelayBeforeShowingLoader,
  this.debugShowCheckedModeBanner = false,
  this.forceOnboarding = false,
  this.askForReview = true,
  this.onDatabaseVersionChanged,
  this.onboardingBuilder,
  this.rootNavigatorKey,
  this.errorReporter,
  this.initialLocation,
  this.blocProviders,
  this.loaderBuilder,
  this.errorBuilder,
  this.loaderJobs,
  this.lightTheme,
  this.darkTheme,
  FastAppInfoDocument? appInformation,
  AssetLoader? assetLoader,
  String? localizationPath,
  Locale? fallbackLocale,
  bool? useProIcons,
  bool? overrideLoaderJobs,
  bool? isInternetConnectionRequired,
  this.defaultAppDictEntries,
  this.onWillRestartApp,
  this.onAppReady,
})  : useProIcons = useProIcons ?? false,
      overrideLoaderJobs = overrideLoaderJobs ?? false,
      assetLoader = assetLoader ?? const LinguaLoader(),
      localizationPath = localizationPath ?? kFastLocalizationPath,
      isInternetConnectionRequired = isInternetConnectionRequired ?? true,
      fallbackLocale = fallbackLocale ?? kFastAppSettingsDefaultLocale {
  appInfo = appInformation ?? kFastAppInfo;
}