hasError property

bool get hasError

hasError is true when statusCode is not between 200 and 299.

Implementation

bool get hasError => status.hasError;