onSocketException method

FutureOr<void> onSocketException(
  1. Exception exception
)

If the request fails with SocketException, this callback will be called with the repository itself as an argument. This callback is useful for retrying the request.

Implementation

FutureOr<void> onSocketException(Exception exception) {
  throw exception;
}