injectable
injectable copied to clipboard
Code Generator for get_it
I have this error: ``` Bad state: GetIt: Object/factory with type IDefaultCoversRepository is not registered inside GetIt. (Did you accidentally do GetIt sl=GetIt.instance(); instead of GetIt sl=GetIt.instance; Did you forget...
I've read the documentation few times already and so far I understand is that I can use injectable for anything which is is "lib" folder, or any other folder if...
Recently, I updated the Injectable library to the latest version. After this update, I encountered an issue with using multiple environments, which was possible in the older version (**1.5.3**). To...
I have a class like this and its implementation like this: ``` abstract class LoggingService { final String className; LoggingService({required this.className}); void log( String message, { LogLevel level = LogLevel.info,...
Hey there! First kudos for the excellent work! I've been loving this library! I have one question regarding using side effects on setup. I'm trying to setup local environment with...
Closes #412 umbrella issue that will cover circular dependency case. Output is like that: For now I find the first loop which might be long one. Maybe it would be...
We have multiple issues closed and not resolved regarding the circular dependencies. I think it would significantly help to print more extended information when StackOverflow error occurs in case of...
Let's assume I have an interface `ILogger` and this implementation: ```dart final class Logger implements ILogger { const Logger(); void print(String message) { // From dart:dev: log(message, name: T.toString()); }...
 When i'm using name `FirebaseCrashlyticsLoggerModule` for the module everything works fine. When i rename it to `CrashlyticsLoggerModule` dependency injection fails in the runtime with message ``` [VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception:...
This is my flutter doctor I am using: - get_it: ^7.2.0 - injectable: ^2.1.2 - injectable_generator: ^2.1.6 - build_runner: ^2.3.3 I've designed an abstract class that serves as a repository...