injectable
injectable copied to clipboard
Code Generator for get_it
I have a bunch of shared injectables in a share library that is used with multiple apps. I'd like to just create a RegisterModule in each project that inherits from...
I am currently using `injectable: 1.5.0` and `injectable_generator: 1.5.2`. Here is a link to a fresh Flutter project with the problem highlighted : [Link](https://github.com/Limbou/example_project) # Importable types Let's declare following...
[ChangeLog](https://pub.dev/packages/injectable/changelog#changelog) missing changes of new version 1.5.4 
Hey, I tried injecting the factory function itself instead of the class like this: ``` final ProfileService Function({String? instanceName, dynamic param1, dynamic param2}) factoryFunc; PoolManager(this.factoryFunc); ``` However this doesn't work...
``` cmd Because test >=1.16.0-nullsafety.19 =1.16.6 =1.16.0-nullsafety.19 =1.17.10 =1.0.0 =1.20.0 depends on test_api 0.4.9, test >=1.16.0-nullsafety.19 requires test_api 0.2.19 or 0.4.9 or analyzer >=1.0.0 1.5.3 =1.16.0-nullsafety.19 then test_api 0.2.19 or...
I would love to have an annotation similar to [`@PostConstruct`](https://www.baeldung.com/running-setup-logic-on-startup-in-spring#1-the-postconstruct-annotation) in Java Spring. My use case are services with `initialization` method, such as service which needs to load settings from...
> if you're facing even a weirder scenario you can always register them manually in the configure function. What is `configure function`?
It would be nice if the package knew to generate async registrations in concurrent fashion. For example: A service and B service are async singletons and they don't depend on...
I want to learn the differences between Singleton and Injectable declarations. I just know that the Singleton provides only one instance, and for the injectable, it provides a new instance...
You have documentation around how to assign bindings to environments but not about how that is handled in the generated function. I can tell you that because even after looking...