isNoConnectionError property
bool
isNoConnectionError
Check DioError
is SocketException and DioErrorType.other
.
If result is true
, it can be no connection error.
Return true
when the condition is true.
Implementation
bool get isNoConnectionError {
return type == DioErrorType.other && error is SocketException;
}