getAuthHeaders abstract method

FutureOr<Map<String, String>> getAuthHeaders()

You do not call this method by yourself, instead it is used by DioClient to inject authentication headers into your requests that may be stored into the PreferencesService. The implementation of this method should return a map of all headers you may want to add to your request when calling ApiService.withAuth. Values will be appended to the current headers of the request

Implementation

FutureOr<Map<String, String>> getAuthHeaders();