common/services/api_service
library
Classes
-
ApiService
-
ApiService is the main class to use to make API calls. This use
an instance of Dio (possibly created using DioClient) and has several
methods to automatize data extraction
-
DioClient
-
This class's only purpose is to instantiate new Dio objects
-
Links
-
Links is a multi-purpose class made to handle HTTP links with your app.
Its used by DioClient to setup new instances
Exceptions / Errors
-
ApiError
-
This is a generic class to handle and display errors across your app.
APIError
helps you track errors coming from API call and display an error
message accordingly. It also maintain the original Exception as well as the
stack trace