FastAppLifecycleBlocState class

Represents the state of the application's lifecycle.

It holds the AppLifecycleState which tracks the lifecycle events (i.e., detached, inactive, paused, and resumed) to react to changes.

Inheritance
  • Object
  • TModel
  • BlocState
  • FastAppLifecycleBlocState

Constructors

FastAppLifecycleBlocState.new({AppLifecycleState appLifeCycleState = AppLifecycleState.detached})

Properties

appLifeCycleState AppLifecycleState
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?>
The list of properties that will be used to determine whether two instances are equal.
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
uuid String
The unique identifier of the bloc state.
finalinherited

Methods

assignValue<T>(T? value, {T? defaultValue, bool loose = true}) → T?
inherited
clone() FastAppLifecycleBlocState
Creates a copy of this TModel.
override
copyWith({AppLifecycleState? appLifeCycleState}) FastAppLifecycleBlocState
Creates a copy of this state but with the given fields replaced with the new values.
override
copyWithDefaults() → TModel
inherited
merge(covariant FastAppLifecycleBlocState model) FastAppLifecycleBlocState
Combines the current state with the new 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