InitializationResult class
The initialization result of a Initializable instance.
- ok
true: initializable is initialized, or, if cyclic, it's still initializing and waiting (transitively) for the requester, which can't wait for it (see Initializable.cyclicDependencies). - ok
false: the initialization failed: error and stackTrace.
Constructors
-
InitializationResult(Initializable initializable, bool ok, {Iterable<
Initializable> ? dependencies, Object? error, StackTrace? stackTrace, bool cyclic = false}) - InitializationResult.error(Initializable initializable, [Object? error, StackTrace? stackTrace])
-
factory
-
InitializationResult.ok(Initializable initializable, {Iterable<
Initializable> ? dependencies}) -
factory
Properties
- cyclic → bool
-
trueif initializable wasn't waited for: it's waiting (transitively) for the requester (a cycle). See Initializable.cyclicDependencies.final -
dependencies
→ List<
Initializable> -
The dependencies of this Initializable instance.
final
- error → Object?
-
The thrown error, if any.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- initializable → Initializable
-
The Initializable of this result.
final
- ok → bool
-
trueif the initialization was OK.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stackTrace → StackTrace?
-
The thrown error StackTrace, if any.
final
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