inject_x 0.0.6
inject_x: ^0.0.6 copied to clipboard
A minimalistic Dependency Injestion solution similar to the Angular one
0.0.1 #
- Initial release
0.0.2 #
- Automated publishing to pub.dev
0.0.3 #
- Return the instance it's adding in the method add
0.0.4 #
- Improve dart compliance
0.0.5 #
- Implementation of a call to an init() method to allow circular references
- Added support for async get where the called init method is async
- Revised internal working (use Type instead of String as key, to avoid possible collisionss)
0.0.6 #
contains<T>()to check registration without throwingregisterLazy<T>()for factory-based lazy creationregisterAsync<T>()for async factory registration- Init errors now propagate to the caller in both
getandgetAsync - Cleared
_pendingIniton failed async init so the next call retries remove<T>()no longer triggersinit()lifecycle- Dispose error handling aligned to
on NoSuchMethodError clear()disposes all instances even if one throws, always cleans up maps- Circular dependency detection with clear error messages
- Updated SDK constraint to
>=3.8.0 <4.0.0with latestlintsandtest - CI workflow (analyze + test matrix) and README badge