hasError property

bool hasError

Returns true if the response has error, otherwise false.

Implementation

bool get hasError => error != null;