DesignFlowApp constructor
DesignFlowApp({
- Key? key,
- required String token,
- required List<
void Function()> dependenciesInitializers, - required RouterConfig<
Object> router, - required Map<
String, Widget Function()> components, - required Map<
String, String Function()> mapComponentsIDToName, - ThemeData? theme,
- BlocObserver? blocObserver,
- bool pathUrlStrategyEnabled = true,
- bool loadThemeFromLocalStorage = true,
- dynamic onAppStateChanged()?,
- dynamic onDependenciesInitialized()?,
- dynamic onCubitsCreated()?,
- Translations translations = const EmptyTranslations(),
- Locale? initialLocale,
- Locale fallbackLocale = const Locale('en', 'US'),
- Widget? errorView,
- Widget? splashView,
- List<
BlocProvider< blocProviders = const [],StateStreamableSource< Function()>Object?> > - Iterable<
LocalizationsDelegate> ? localizationsDelegates, - Iterable<
Locale> supportedLocales = const <Locale>[Locale('en', 'US')],
Implementation
DesignFlowApp({
super.key,
required this.token,
required this.dependenciesInitializers,
required this.router,
required this.components,
required this.mapComponentsIDToName,
required this.navigatorKey,
this.theme,
this.blocObserver,
this.pathUrlStrategyEnabled = true,
this.loadThemeFromLocalStorage = true,
this.onAppStateChanged,
this.onDependenciesInitialized,
this.onCubitsCreated,
this.translations = const EmptyTranslations(),
Locale? initialLocale,
this.fallbackLocale = const Locale('en', 'US'),
this.errorView,
this.splashView,
this.blocProviders = const [],
this.localizationsDelegates,
this.supportedLocales = const <Locale>[Locale('en', 'US')],
}) {
this.initialLocale = initialLocale ?? systemLocales.first;
}