FastApp constructor
FastApp({
- Key? key,
- required RoutesForMediaTypeCallback routesForMediaType,
- Duration delayBeforeShowingLoader = kFastDelayBeforeShowingLoader,
- bool debugShowCheckedModeBanner = false,
- bool forceOnboarding = false,
- bool askForReview = true,
- DatabaseVersionChanged? onDatabaseVersionChanged,
- WidgetBuilder? onboardingBuilder,
- IFastErrorReporter? errorReporter,
- String? initialLocation,
- List<
BlocProviderSingleChildWidget> ? blocProviders, - FastAppLoaderBuilder? loaderBuilder,
- FastAppLoaderErrorBuilder? errorBuilder,
- Iterable<
FastJob> ? loaderJobs, - ThemeData? lightTheme,
- ThemeData? darkTheme,
- FastAppInfoDocument? appInformation,
- AssetLoader? assetLoader,
- String? localizationPath,
- Locale? fallbackLocale,
- bool? useProIcons,
- bool? overrideLoaderJobs,
- bool? isInternetConnectionRequired,
- List<
FastDictEntryEntity> ? defaultAppDictEntries, - VoidCallback? onWillRestartApp,
- Future onAppReady(
- 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;
}