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 the disposal is over, including when there was nothing to do.
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() Stream<String>
Releases this dependency, yielding the path of each step.
init() Stream<String>
Initializes this dependency, yielding the path of each step.
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