FastAppSettingsJob class

A FastJob that initializes the FastAppSettingsBloc. It is used to load the settings of the application and initialize the FastAppSettingsBloc before the FastAppSettingsBloc is used.

Inheritance
Mixed-in types

Constructors

FastAppSettingsJob.new()
factory

Properties

blockStartupOnFailure bool
Whether the job should prevent the app from starting if it fails.
finalinherited
debugLabel String?
finalinherited
hashCode int
The hash code for this object.
no setterinherited
requestUserInteraction bool
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeout Duration
The time limit for the job to complete.
finalinherited

Methods

applySettings(BuildContext context, FastAppSettingsBlocState settingsState) Future<void>
Applies the settings to the application. It is used to update the theme of the application.
determineUserLanguageCode(String languageCode, Iterable<Locale> supportedLocales) Future<String>
dispatchThemeModeChanged(FastThemeBloc themeBloc, ThemeMode themeMode) → void
Dispatches a theme mode change event. It is used to update the theme of the application.
inherited
initialize(BuildContext context, {IFastErrorReporter? errorReporter}) Future<void>
override
initializeSettingsBloc(BuildContext context, {IFastErrorReporter? errorReporter}) Future<FastAppSettingsBlocState>
Initializes the FastAppSettingsBloc by retrieving the settings from the FastAppSettingsBloc and returns the FastAppSettingsBlocState.
isLanguageCodeSupported(String languageCode, Iterable<Locale> supportedLocales) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifiyErrorReporterIfNeeded(String languageCode, String? countryCode, {IFastErrorReporter? errorReporter}) Future<void>
run(BuildContext context, {IFastErrorReporter? errorReporter}) Future<bool>
inherited
shouldUse24HourFormat(BuildContext context) Future<bool>
toString() String
A string representation of this object.
inherited
updateThemeMode(BuildContext context, FastAppSettingsBlocState settingsState) Future<void>
Updates the theme mode of the application.

Operators

operator ==(Object other) bool
The equality operator.
inherited