isNetworkError property

bool get isNetworkError

Check if exception is due to network issues

Implementation

bool get isNetworkError =>
    type == ApiExceptionType.noInternet ||
    type == ApiExceptionType.socketException ||
    type == ApiExceptionType.timeout ||
    type == ApiExceptionType.serverDown;