catchDioError<R extends APIResponse> method
Catches and handles a DioError
error in a future
future
: The futurehandle
: The error handling function
Implementation
Future<R> catchDioError<R extends APIResponse>(
Future<R> future, R Function(DioError) handle) {
return catchError<R, DioError>(future, handle, options.errorHandling);
}