di_manager 3.3.12 copy "di_manager: ^3.3.12" to clipboard
di_manager: ^3.3.12 copied to clipboard

A Simple DI Manager.

Dependency Injection (DI) for Dart #

A simple and lightweight Dependency Injection (DI) container for Dart. This library helps manage service registration and retrieval in a clean, maintainable way, following the Singleton and Factory design patterns.

Features #

  • Singleton Registration: Register services as singletons to ensure a single instance throughout the application.
  • Factory Registration: Register services as factories to create a new instance every time.
  • Type-Safe Retrieval: Retrieve services by their type with automatic instantiation.

Installation #

Add the dependency to your pubspec.yaml file:

dependencies:
  di: ^1.0.0
1
likes
130
points
20
downloads

Publisher

unverified uploader

Weekly Downloads

A Simple DI Manager.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on di_manager