FastAppSettingsBlocState class

The FastAppSettingsBlocState class is the state of the FastAppSettingsBloc.

It contains the current settings of the application.

Inheritance
  • Object
  • TModel
  • BlocState
  • FastAppSettingsBlocState

Constructors

FastAppSettingsBlocState.new({bool isInitializing = false, bool isInitialized = false, String? secondaryCurrencyCode, String? countryCode, String? theme, bool? use24HourFormat, String? primaryCurrencyCode, String? languageCode, bool? saveEntry})
Constructs a FastAppSettingsBlocState with the provided parameters.

Properties

countryCode String?
The current country code of the application. Format: ios3166 For example: US, FR, DE, ...
final
error → dynamic
Whether the bloc has an error.
finalinherited
hasError bool
Indicates whether the bloc has an error.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isBusy bool
Whether the bloc is busy.
finalinherited
isInitialized bool
Whether the bloc is initialized.
finalinherited
isInitializing bool
Whether the bloc is initializing.
finalinherited
languageCode String
The current language code of the application. Format: ios3166 For example: en, fr, de, ...
final
languageLocale Locale
The current locale of the application.
no setter
localeCode String
The current locale code of the application. Format: languageCode_countryCode For example: en_US, fr_FR, de_DE, ...
no setter
primaryCurrencyCode String
The primary currency code.
final
props List<Object?>
Returns a list of properties used to determine equality between instances.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
saveEntry bool
Indicates whether the user's entry should be saved or not.
final
secondaryCurrencyCode String?
The secondary currency code.
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
theme String?
The current theme of the application.
final
themeMode ThemeMode
The current theme mode of the application. It is computed from the current theme.
no setter
use24HourFormat bool
Whether the application should always use the 24-hour format.
final
uuid String
The unique identifier of the bloc state.
finalinherited

Methods

assignValue<T>(T? value, {T? defaultValue, bool loose = true}) → T?
inherited
clone() FastAppSettingsBlocState
Creates a new FastAppSettingsBlocState instance with the same property values as the current instance.
override
copyWith({bool? use24HourFormat, bool? isInitializing, String? languageCode, ValueGetter<String?>? countryCode, bool? isInitialized, String? theme, String? primaryCurrencyCode, String? secondaryCurrencyCode, bool? saveEntry}) FastAppSettingsBlocState
Creates a new FastAppSettingsBlocState instance with updated properties.
override
copyWithDefaults() → TModel
inherited
merge(covariant FastAppSettingsBlocState model) FastAppSettingsBlocState
Merges the properties of the provided model into a new FastAppSettingsBlocState instance.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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