hasError property

bool get hasError

Indicates whether the response contains error.

Implementation

bool get hasError => exception != null;