Dependencies class
A container for resolved dependencies. When This class provides methods to retrieve specific dependencies by type or token.
Constructors
- Dependencies(DependencyData dependencyMapsData)
-
Creates a Dependencies container with the provided
dependencyMapsData.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
call<
T extends Object> ([Object? token]) → T -
Retrieves a dependency of type
T. -
get<
T extends Object> ([Object? token]) → T -
Retrieves a dependency of type
T. -
getOptional<
T extends Object> ([Object? token]) → T? -
Retrieves a dependency of type
T, or returnsnullif it cannot be found. -
invokeApply<
T> (Function function) → T -
Invokes
functionby mapping its arguments to the resolved dependencies. -
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