di library
Classes
- DiModule
- A logical grouping of service registrations.
- PkDisposable
- Implemented by services that need deterministic cleanup when their enclosing ServiceLocator scope is torn down.
- PkServiceScopeWidget
- An InheritedWidget that creates a ServiceScope for its subtree and disposes it when removed from the tree.
- ServiceDescriptor
- Metadata for a registered service.
- ServiceLocator
- Lightweight service locator with lifecycle management.
- ServiceScope
- A child scope that inherits registrations from a parent ServiceLocator but maintains its own instance cache for ServiceLifetime.scoped services.
Enums
- ServiceLifetime
- Defines how long a registered service instance lives.