onSocketException method
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;
}