isConnectionError property

bool get isConnectionError

Implementation

bool get isConnectionError =>
    (exception is DioException) &&
    (exception as DioException).type == DioExceptionType.connectionError;