defaultErrorCallback method

ApiCallback<T> defaultErrorCallback(
  1. DioError e
)

Implementation

ApiCallback<T> defaultErrorCallback(DioError e) {
  return ApiCallback<T>(
      isSuccessful: false,
      error: e,
      resultErrorMessage: ApiCallback.parseResponseError(
          e.response != null ? e.response.data : null));
}