Releases: jonsamwell/flutter_simple_dependency_injection
Releases · jonsamwell/flutter_simple_dependency_injection
2.0.0
[2.0.0] - 15/04/2021
- Stable null safety release
- BREAKING CHANGE: the deprecated method
Injector.getInjector()
has now been removed in favour of the factory constructor. - Added the ability to allow the injector mapping to be reassigned at runtime using the parameter
allowFutureReassignment
1.0.4
[1.0.4] - 26/10/2020
- Various code optimizations.
- Api now allows for method chaining so make mapping more concise.
- Silent removing of non existing mappings (without throwing exceptions).
- The Injector class now has a factory constructor. An Injector instance can be instantiated
in a more concise way thanInjector.getInjector()
which is now marked as deprecated.
// example with introduced changes
final injector = Injector();
injector.map<SomeType>((injector) => SomeType("0"))
..map<SomeType>((injector) => SomeType("1"), key: "One")
..map<SomeType>((injector) => SomeType("2"), key: "Two");
1.0.3
Added the ability to remove a mapping and check if a mapping is present in the injector