I do want to use the packages get_it and injectable. They are both wonderful, but I'm facing a issue. Maybe my idea is wrong.
My application has two singletons and I want to use different base urls for different app flavors. So I added a parameter to the singleton constructor with the baseUrl value.
The problem is now, that injectable has only @factoryParam as annotation. The name shows the problem. It's not for singletons.
What will be the best practice for that issue? Should I get rid of constructor injection and inject the baseUrl within the singleton like
var url = get_it.get<Config>();
or is that not the best idea?