injector 1.0.5 injector: ^1.0.5 copied to clipboard
injector is a simple to use and lightweight dependency injection library for dart
1.0.5 #
- Breaking Changes! Injector is not a singleton.
You can use it like a singleton with the static instance
Injector.appInstance
- You can register your dependencies with a name. But be careful,
you need always the generic type! It looks like
Injector.allInstance.registerDependency<UserService>((injector) => UserServiceImpl), dependencyName: "MyCustomName");
1.0.4 #
- Add some documentation for each class
1.0.3 #
- Change license from BSD-3 to Apache 2
1.0.2 #
- Upgrade analysis_options.yaml
- Add missing Cast ("as T")
- Add Test - Cycle dependencies
1.0.1 #
- Upgrade pubspec.yaml (Change dart sdk constraint)
- Update README.md
- Update Description
1.0.0 #
- Create package,
- Add Injector class
- Add unit tests for "Injector"
- Add example - How to deal with the injector / dependency injector