hasError property Null safety

bool hasError

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

Implementation

bool get hasError => status.hasError;