FactoryContainer class

IoC container.

Constructors

FactoryContainer()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
short FactoryContainerShort
Shortened syntax version of FactoryContainer for convenience use in factory delegates.
no setter

Methods

attachChildContainer(FactoryContainer container) → void
Attach a child container to this container.
install(FactoryInstaller installer) → void
Install an installer into this container.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
register<T>(FactoryDelegate<T> factory, {String name = '', Lifestyle lifestyle = Lifestyle.Singleton}) → void
Register a component of specified type using factory delegate.
resolve<T>({String name = ''}) → T
Resolve component by type and name.
resolveAll<T>() List<T>
resolveOfType(Type type, {String? name, bool all = false}) → dynamic
Resolve a dependency of a runtime obtained type.
toString() String
A string representation of this object.
inherited

Operators

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