I just wanted to know, if the dio packages uses isolates by default, if it do not uses isolates than how can I use them. because my API fetches a lot of data and decoding the json on UI thread might not be a good idea.
No, it does not use isolate by default.
If you want to parse json in an isolate, you can use flutter compute function to run it in an isolate.
You can find an example of using this in the example app of dio: lib/main.dart#L16
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With