DependyProvider<T extends Object> class final

A provider responsible for creating instances of type T using a specified factory.

A key may be provided for debugging purposes.

Dependencies of T must be declared in dependsOn; otherwise, a DependyProviderMissingDependsOnException is thrown.

Use dispose for any necessary cleanup when the provider is no longer needed.

Constructors

DependyProvider(DependyFactory<T> factory, {String? key, Set<Type>? dependsOn, DependyDispose<T?>? dispose})

Properties

disposed bool
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
Disposes of the current provider and performs any cleanup defined in the dispose callback.
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