checkConnectivityBeforeRequest property
Whether to check connectivity before making a request.
If true and the device is offline, the request will fail immediately
with a DioExceptionType.connectionError instead of waiting for timeout.
Implementation
bool checkConnectivityBeforeRequest = false;