InitializationStatus class
The initialization status of the initializable instance.
| state | initialized | initializing | finalizing | failed | idle |
|---|---|---|---|---|---|
idle |
false | false | false | false | true |
initializing |
false | true | false | false | false |
finalizing |
false | true | true | false | false |
initialized |
true | false | false | false | false |
failed |
false | false | false | true | true |
Properties
- asynchronous → bool
-
Returns
trueif initializable has an asynchronous initialization (an attempt that didn't complete synchronously).no setter - error → Object?
-
The error of the last (failed) initialization attempt.
no setter
- failed → bool
-
Returns
trueif the last initialization attempt failed (see error). The next initialization call starts a new attempt.no setter - finalizing → bool
-
Returns
trueif initializable is finalizing: itsinitialize()completed and it's initializing its post-dependencies.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
The initializable ID: the order its (last) initialization attempt
started.
no setter
- idle → bool
-
Returns
trueif is not initialized yet and not initializing (also after a failed attempt).no setter - initializable → Initializable
-
The Initializable instance of this status.
final
- initializationTime → Duration?
-
no setter
- initialized → bool
-
Returns
trueif initializable is already initialized.no setter - initializedTime → DateTime?
-
no setter
- initializing → bool
-
Returns
trueif initializable is initializing (an attempt is in progress, including finalizing).no setter - initializingTime → DateTime?
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stackTrace → StackTrace?
-
The StackTrace of the error.
no setter
- status → String
-
Returns the initialization status as String. Examples:
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited