onError method

Future onError(
  1. DioException error,
  2. RetryHandler retry
)

Function to retry error requests

Implementation

Future<dynamic> onError(dio.DioException error, RetryHandler retry) async {
  return error;
}