levit_di library
Pure Dart dependency injection and service locator.
This library provides the core dependency injection mechanism used by Levit. It supports:
- Singleton and factory registrations.
- Lazy and async initialization.
- Hierarchical scoping (LevitScope).
- Lifecycle management via LevitDisposable.
Classes
-
InstanceInfo<
S> - Holds metadata about a registered dependency instance.
- Levit
- Global static accessor for the dependency injection system.
- LevitDisposable
- Interface for objects that require lifecycle management.
- LevitScope
- A scoped dependency injection container.