Container class

Constructors

Container(Reflector reflector)

Properties

isRoot → bool
read-only
reflector Reflector
final
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

createChild() Container
Creates a child Container that can define its own singletons and factories. [...]
findByName<T>(String name) → T
Finds a named singleton. [...]
has<T>([Type t ]) → bool
Determines if the container has an injection of the given type.
hasNamed(String name) → bool
Determines if the container has a named singleton with the given name.
make<T>([Type type ]) → T
Instantiates an instance of T. [...]
makeAsync<T>([Type type ]) → Future<T>
Instantiates an instance of T, asynchronously. [...]
registerFactory<T>(T f(Container), { Type as }) → void
registerLazySingleton<T>(T f(Container), { Type as }) → void
Shorthand for registering a factory that injects a singleton when it runs. [...]
registerNamedSingleton<T>(String name, T object) → void
Registers a named singleton. [...]
registerSingleton<T>(T object, { Type as }) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited