ScopeDependency class abstract interface Scope

Implementers
Available extensions

Constructors

ScopeDependency(String name, FutureOr<void> init(ScopeDependencyHandle dep))
factory
ScopeDependency.concurrent(String name, Iterable<ScopeDependency> dependencies)
factory
ScopeDependency.sequential(String name, Iterable<ScopeDependency> dependencies)
factory

Properties

count → int
How many steps this subtree reports while it initializes.
no setter
disposalRequired → bool
Whether anything has to be released for this dependency.
no setter
hashCode → int
The hash code for this object.
no setterinherited
initializationRequired → bool

Available on ScopeDependency, provided by the ScopeDependencyExtension extension

Whether this dependency has yet to be initialized.
no setter
isCancelled → bool

Available on ScopeDependency, provided by the ScopeDependencyExtension extension

Whether the initialization or the disposal was cancelled.
no setter
isDisposed → bool

Available on ScopeDependency, provided by the ScopeDependencyExtension extension

Whether this dependency stands in ScopeDependencyDisposed.
no setter
isFailed → bool

Available on ScopeDependency, provided by the ScopeDependencyExtension extension

Whether the initialization or the disposal failed.
no setter
isGroup → bool

Available on ScopeDependency, provided by the ScopeDependencyExtension extension

Whether this is a group rather than a single dependency.
no setter
isInitialized → bool

Available on ScopeDependency, provided by the ScopeDependencyExtension extension

Whether the initialization succeeded.
no setter
name → String
The name this dependency was declared with.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
state → ScopeDependencyState
Where in its lifecycle this dependency is.
no setter
wrappedName → String
The name as it appears in a tree dump — "dep" or [group].
no setter

Methods

dispose(void onStep(String path)) → Future<void>
Releases this dependency, reporting the path of each step to onStep.
init(ScopeInitContext ctx, void onStep(String path)) → Future<void>
Initializes this dependency, reporting the path of each step to onStep.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onUnmount() → void
Lets go of whatever cannot wait for dispose.
stateToString() → String
The state as a line of a tree dump.
toString() → String
A string representation of this object.
inherited

Operators

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