onResponse method
Called when the interceptor should process the request (options
)
Return a future with (modified) RequestOptions
to continue the chain
or an instance of DioException
(or subclasses) to halt processing.
Any other values will simply call the next interceptor with options
Implementation
Future<Object?> onResponse(Response response) {
return Future.value(response);
}