dependy library

Dependy

Classes

DependyModule
A module that manages the creation and disposal of providers.
DependyProvider<T extends Object>
A provider responsible for creating instances of type T using a specified factory.
EagerDependyModule

Typedefs

DependyDispose<T> = void Function(T)
Used on DependyProvider to notify about disposal of it.
DependyFactory<T extends Object> = FutureOr<T> Function(DependyResolve dependencies)
Used on DependyProvider to create an instance of given T.
DependyResolve = FutureOr<T> Function<T extends Object>()
Used as part of DependyFactory to resolve dependsOn dependencies

Exceptions / Errors

DependyCircularDependencyException
This exception is thrown when there is a circular dependency in the provider graph.
DependyModuleDisposedException
This exception is thrown when you attempt to resolve a provider from a DependyModule that has already been disposed.
DependyProviderDisposedException
This exception is thrown when you try to use a provider that has already been disposed.
DependyProviderMissingDependsOnException
This exception is thrown when a provider tries to resolve a dependency that has not been declared in its dependsOn set.
DependyProviderNotFoundException
This exception occurs when you try to resolve a provider for a specific type, but no provider is registered for that type within the module or its submodules.