isError property

bool get isError

If true, this instance represents an error response.

Error responses contain a non-null error value.

Implementation

bool get isError => error != null;