bind<T> method
Registers a new service within the IOC. class MyService {}
ioc.bind(namespace: 'Mineral/Services/MyService', MyService);
Implementation
void bind<T> ({ required String namespace, required T service }) {
if (_services.containsKey(namespace)) {
throw ServiceAlreadyRegistered();
}
_services.putIfAbsent(namespace, () => service);
}