FastThemeBlocState class

Represents the state for the FastThemeBloc.

It holds the information related to the current theme, including the brightness and the chosen theme mode (light, dark, or system).

Inheritance
  • Object
  • TModel
  • BlocState
  • FastThemeBlocState

Constructors

FastThemeBlocState.new({bool isInitialized = false, bool isInitializing = false, ThemeMode themeMode = ThemeMode.system, Brightness? brightness})
Constructs a FastThemeBlocState.

Properties

brightness Brightness?
The current brightness of the theme (light or dark).
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
props List<Object?>
Provides a list of properties used for diffing and debugging.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
themeMode ThemeMode
The current theme mode (light, dark, or system).
final
uuid String
The unique identifier of the bloc state.
finalinherited

Methods

assignValue<T>(T? value, {T? defaultValue, bool loose = true}) → T?
inherited
clone() FastThemeBlocState
Creates an exact clone of the current state.
override
copyWith({bool? isInitialized, bool? isInitializing, ThemeMode? themeMode, Brightness? brightness}) FastThemeBlocState
Creates a copy of the current state with the given updated values.
override
copyWithDefaults() → TModel
inherited
merge(covariant FastThemeBlocState model) FastThemeBlocState
Merges the current state with the provided model.
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