Dependency class

A class that manages dependency injection by storing and retrieving singleton instances of classes.

Constructors

Dependency()

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

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

Static Methods

delete<T>({String? tag}) bool
Deletes a singleton instance of a class from the dependency store.
find<T>({String? tag}) → T
Retrieves a singleton instance of a class from the dependency store.
put<T>(T dependency, {String? tag}) → T
Inserts a singleton instance of a class into the dependency store.