Ioc class

The Container package is one of the core components of the Mineral framework, in fact it registers the entire application through its IOC.

Constructors

Ioc()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
services Map<Type, MineralService>
no setter

Methods

bind<T extends MineralService>(T service(Ioc ioc)) → T
Registers a new service within the IOC. class MyService {}
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove<T extends MineralService>() → void
Deletes a service registered in the /// ```dart ioc.remove
toString() String
A string representation of this object.
inherited
use<T extends MineralService>() → T
Resolve the service instance from its namespace /// ```dart final myService = ioc.use

Operators

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