singleton<T extends dynamic> method

T singleton<T extends dynamic>(
  1. String namespace
)

Resolve the service instance from its namespace /// ```dart final myService = ioc.singleton('Mineral/Services/MyService'); final myService = ioc.singleton

Implementation

T singleton<T extends dynamic> (String namespace) {
  return Ioc._instance._services[namespace] as T;
}