http-mock-adapter is a Dart package built upon Dio & Mockito. By simply defining requests and corresponding responses through predefined adapters, you will be able to mock requests sent via Dio. Alternatively, you can simply mock the data just as before via Mockito on http-mock-adapter’s custom adapters.
What problem does http-mock-adapter solve?
The problem lies within the nature of the issue — efficient testing.
Generally speaking, a project might include a lot of code that: