container property
DiContainer
get
container
The currently attached container.
Throws DiServiceLocatorNotAttachedException when the locator is empty.
Implementation
DiContainer get container {
final DiContainer? attached = _container;
if (attached == null) {
throw const DiServiceLocatorNotAttachedException();
}
return attached;
}