hasError property Null safety

bool hasError

Returns true if an error has occurred while issuing the request.

If true, attempting to access some fields will throw a HttpProfileRequestError.

Implementation

bool get hasError => error != null;