chopper
chopper copied to clipboard
How to declare and make use of multiple ChopperService in flutter?
We have been using single ApiClient class extending a ChooperService
which defined every other API contracts and ChopperClient
as well. We just figured out that we can also have multiple services defined with our ChopperClient
. Hence want to know how we can achieve that in our flutter project and what's the best architecture set up for it?
Do you mean you want all the services to have just one ChopperClient?
Yes, we have been working on it and we've achieved the setup I was looking for in my question. Soon, I'll be adding an example of it and give it a PR.