DependencyContainer class

Implemented types

Constructors

DependencyContainer()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
registeredTypes List<Type>
endregion
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

destroy() → void
override
get<T>() → T
Get a dependency by passing its type as T
override
getFromToken<T>() → T
Get a dependency which was passed inside a injection token
override
has<T>() bool
Check if a specific dependency is registered
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
register<T>(T service) → void
Register a service
override
registerInterface<TB, T extends TB>(T service) → void
Register a service for a specific interface
override
registerInterfaceWithDependencies<TB, T extends TB>(ServiceFactory<T> serviceFactory, List<Type> dependencies) → void
Register a serviceFactory with dependencies for a specific type.
override
registerWithDependencies<T>(ServiceFactory<T> serviceFactory, List<Type> dependencies) → void
Register a serviceFactory with dependencies
override
toString() String
A string representation of this object.
inherited
unregister<T>() → void
Unregister a service type
override
wire() → void
override

Operators

operator ==(Object other) bool
The equality operator.
inherited