escamoteur
escamoteur
Not sure if is a responsebility of get_it. In you case I would add a field `bool disposeManually` that is set to true by the factory and that you can...
You only declare on global viable for the servicelocator and use it everywhere
@Daghis What would you gain? You would still need to import the filer where the GetIt class is defined.
I typically have a file `backend.dart` like this here ``` import 'package:aartos/services/rtsa_service_.dart'; import 'package:aartos/services/rtsa_service_impl.dart'; import 'package:get_it/get_it.dart'; export 'package:aartos/services/rtsa_service_.dart'; GetIt backend = GetIt(); void initBackend() { backend.registerSingleton(RTSAServiceImplementation()); backend().init('192.168.178.91', 54664); //backend().init('clabuster.dyndns.org', 54664);...
Hi Ryan, what would be the advantage to https://pub.dev/documentation/get_it_mixin/latest/get_it_mixin/GetItMixin/pushScope.html ? So far get_it doesn't have a Flutter dependency which I did not want to change. So I would need to...
I agree, a separate package would make sense for that. Also about the readme on this in the get_it_mixin. Maybe you could make a PR on that ;-)
You mean you registered multiple instances of the same type? and you want to call the same method on all of them?
ah, understood. I will think about it.
Could you elaborated why this would be useful?
One question would be should it only get all of exact the same type or also derived types?