isError property

bool get isError

Check if the request had an error.

Implementation

bool get isError => statusCode != null && statusCode! >= 400;