InternetConnectionIssueFailure.fromSocketException constructor
InternetConnectionIssueFailure.fromSocketException()
Implementation
factory InternetConnectionIssueFailure.fromSocketException(SocketException e) {
return InternetConnectionIssueFailure(
original: e.message,
port: e.port,
domain: e.address?.host,
address: e.address?.address,
osErrorCode: e.osError?.errorCode,
osErrorMessage: e.osError?.message,
);
}