FastApp class
The main entry point for a Fastyle Dart application.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- FastApp
Constructors
-
FastApp.new({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)?})
Properties
- appInfo ↔ FastAppInfoDocument
-
An FastAppInfoDocument instance that contains information about the
application such as name, version, supported locales, etc.
latefinal
- askForReview → bool
-
A flag indicating whether to ask the user for an app review
when certain conditions are met.
final
- assetLoader → AssetLoader
-
The dynamic asset loader for the localization assets.
final
-
blocProviders
→ List<
BlocProviderSingleChildWidget> ? -
A list of
BlocProviderSingleChildWidget
to provide theBloc
instances to the application.final - darkTheme → ThemeData?
-
The dark theme data for the application.
final
- debugShowCheckedModeBanner → bool
-
A flag indicating whether to show the debug banner on the top
right corner of the screen.
final
-
defaultAppDictEntries
→ List<
FastDictEntryEntity> ? -
final
- delayBeforeShowingLoader → Duration
-
The duration to delay before showing the loading widget during
the initialization of the application.
final
- errorBuilder → FastAppLoaderErrorBuilder?
-
A builder function that builds an error widget for displaying errors
during the loading process of the application.
final
- errorReporter → IFastErrorReporter?
-
An error reporter implementation for reporting errors that occur
during the application lifecycle.
final
- fallbackLocale → Locale
-
The fallback locale to use if the system locale is not supported.
final
- forceOnboarding → bool
-
A flag indicating whether to force the onboarding process even
if the application has been launched before.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialLocation → String?
-
final
- isInternetConnectionRequired → bool
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- lightTheme → ThemeData?
-
The light theme data for the application.
final
- loaderBuilder → FastAppLoaderBuilder?
-
A builder function that builds the loading widget that is shown
during the initialization of the application.
final
-
loaderJobs
→ Iterable<
FastJob> ? -
A list of FastJob instances to be executed during the
loading process of the application.
final
- localizationPath → String
-
The path to the localization assets directory.
final
- onAppReady → Future Function(BuildContext context)?
-
final
- onboardingBuilder → WidgetBuilder?
-
A builder function that builds the onboarding widget that is shown
to the user when the application is launched for the first time.
final
- onDatabaseVersionChanged → DatabaseVersionChanged?
-
A callback function that is invoked when the database version is changed.
final
- onWillRestartApp → VoidCallback?
-
final
- overrideLoaderJobs → bool
-
final
-
A key to the root navigator state that can be used to perform
navigation actions from anywhere in the application.
final
- routesForMediaType → RoutesForMediaTypeCallback
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- useProIcons → bool
-
A flag indicating whether to use the pro icons.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< StatefulWidget> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
restart(
BuildContext context) → void