injectable
injectable copied to clipboard
Code Generator for get_it
Example of the project -- lib/main.dart -- packages/authentication_repository/lib/authentication_repository.dart lib/main.dart with AuthenticationBloc or any other class that depends on the Repository class (like AuthenticationRepository) which is exposed as an local package....
HI! Could you give advice how to get all instances from DI as List? I have AbstractClass and more than one implementations (singleton). I'd like to get all of them...
- Updated code generation command as per latest Dart SDK
I have this singleton: ```dart final class OpenWeather { final String baseURL, apiKey, baseWeatherIconUrl; const OpenWeather._({required this.baseURL, required this.apiKey, required this.baseWeatherIconUrl}); static OpenWeather? _instance; static Future init() async { if...
This PR handles and passes exceptions that can happen inside the async scope initialization. Previously the completer never completed if the init function threw an exception.
This PR supports path customization for `.config.dart` and `.module.dart`.
I have some injectable classes registered in main isolate and have some isolates trying to use those classes as in the following semplified example: ``` @module abstract class RegisterModule {...
Currently, generated files use the `.config.dart` extension. This is a bit to general IMO and not necessarily interpreted as a generated file by default. Personally, I prefer to gitignore generated...
The readme currently mentions that one can pass their own `EnvironmentFilter` but does not provide an example of how to do so. Specifically, it would be nice to have documentation...