simplest_service_locator library
Simple service locator package developed in Dart. Its purpose is to provide
an API similar to get_it
, but make sure
it is easier to understand, and has less bloat associated with it.
Classes
- SimplestServiceLocator
-
Implements
ISimplestServiceLocator
to provide a service locator with singleton, lazy singleton, and factory capabilities.
Exceptions / Errors
- AsyncServiceAccessException
- An exception thrown when an attempt is made to access an asynchronous service using a synchronous method.
- ServiceAlreadyRegisteredException
- An exception thrown when an attempt is made to register a service that has already been registered in the service locator.
- ServiceNotRegisteredException
- An exception thrown when an attempt is made to access a service that has not been registered in the service locator.