Dependency<T> class
final
A class that represents a dependency in the dependency injection system.
Constructors
-
Dependency(T factory(Dependencies scope), {List<
Type> dependsOn = const []}) -
Creates a Dependency with the given factory and dependencies.
const
Properties
-
dependsOn
→ List<
Type> -
(Optional) A list of types that the factory depends on.
final
- factory → T Function(Dependencies scope)
-
The factory callback that creates an instance of type
T
.final - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → Type
-
The type of the dependency.
no setter
Methods
-
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