injectable
injectable copied to clipboard
Code Generator for get_it
I'm building out a project at the moment with a focus on TDD, all my unit tests have been going great with Mockito where I can mock the repository using...
Hi, I'm new with injectable. I try to apply this for my project but I got a problem. >[SEVERE] injectable_generator:injectable_builder on lib/injector_container.dart: Error running Instance of 'InjectableGenerator' NoSuchMethodError: The getter...
I'm creating a database using floor package [https://pub.dev/packages/floor](url) i don't know how to use injectable to inject the database class here: ``` @TypeConverters([StatusTypeConverter, DateTypeConverter]) @Database(version: kVersion, entities: [Note]) abstract class...
Currently, when the dependency tree has resolution problems, the code generation command throws a warning. Example: ``` [WARNING] injectable_generator:injectable_config_builder on bin/main.dart: Missing dependencies in plugin_test/bin/main.dart [A] depends on unregistered type...
Is it possible to register a module class under different environments? Example: ``` @prod @dev @module abstract class ServicesModule {} @mock @module abstract class ServicesMockModule {} ```
Dagger can binding multi-instance to a container ```kotlin @Provides @IntoSet static String provideOneString(DepA depA, DepB depB) { return "ABC"; } ``` It's a handy feature, Hope the injectable can support...
Hey there guys, really enjoying this plugin, awesome work! I've been messing for a couple of days with following problem. I'm building a shared packages for some of the apps...
Need to create localdatasource with moor, but before get async queryExecutor. ``` Future constructQueryExecutor() async { if (kIsWeb) { final storage = await web.MoorWebStorage.indexedDbIfSupported('db'); return web.WebDatabase.withStorage(storage); } else return flutter.FlutterQueryExecutor.inDatabaseFolder(path:...
this pull request fixes this [issue](https://github.com/Milad-Akarie/injectable/issues/159) and resolves type arguments using their interface name and import Consider the following classes: ```dart abstract class InterfaceA {} @Singleton(as: InterfaceA) class InterfaceAImpl implements...
I have next class: ```dart class MyService implement InterfaceOne, InterfaceTwo{ ``` I would like to have access via `get_it` to both `InterfaceOne` and `InterfaceTwo`. But `LazySingleton` allows me to use...