DepsNode class abstract

A base class for managing lifecycle-bound dependencies.

Implements the Lifecycle interface to ensure proper initialization and disposal of dependencies in a controlled manner.

Implemented types

Constructors

DepsNode.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
initializeQueue List<Set<LifecycleDependency>>
The queue of dependency sets that need to be initialized.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status DepsNodeStatus
Returns the current status of the DepsNode.
no setter
statusStream Stream<DepsNodeStatus>
A stream that emits status updates for the DepsNode.
no setter

Methods

bind<R>(DependencyCreator<R> creator) Dependency<R>
Binds a dependency to be retrieved safely.
bindSingletonFactory<R, Param>(SingletonFactoryCreator<R, Param> creator) SingletonFactoryDependency<R, Param>
Binds a singleton factory dependency that creates instances based on a parameter.
clear() → void
Clears all stored dependencies and resets the node's status to DepsNodeStatus.idle.
dispose() Future<void>
Disposes all dependencies in the queue in reverse order.
override
init() Future<void>
Initializes all dependencies in the queue.
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