setCheckConnectivityBeforeRequest method
Set whether to check connectivity before making requests. When enabled, requests will fail immediately if the device is offline.
Implementation
void setCheckConnectivityBeforeRequest(bool check) {
checkConnectivityBeforeRequest = check;
}