handleDioError<T> method

RemoteResponse<T> handleDioError<T>(
  1. DioError e
)

Implementation

RemoteResponse<T> handleDioError<T>(DioError e) {
  if (e.isNoConnectionError) {
    return const RemoteResponse.noConnection();
  }
  throw e;
}