flutter_catalyst: ^2.0.0 copied to clipboard
A dependency injection container which also supports autowiring of services.
Catalyst is a dependency injection container for the dart language.
The flutter_catalyst project is a port of the catalyst project to provide dependency injection in Flutter projects.
📦 Installation #
Add the following to your
dependencies: flutter_catalyst: ^2.0.0
💡 Usage #
Check out the examples
|Return all registered types|
|Register a service for a specific interface|
|Register a service|
|Register a serviceFactory with dependencies|
|Register a serviceFactory with dependencies for a specific interface|
|Unregister a service|
|Get a service by passing its type as|
|Check if a specific service is registered|
|Wire the services with dependencies (|
|Destroy the service container instance|
|Get a service which was wrapped inside a InjectionToken|
🔬 Testing #
$ pub run test
🤝 Contribute #
Feel free to fork and add pull-requests 🤓