hasError property

bool hasError

Returns true if the response has an error associated with it

Implementation

bool get hasError => errorMessage != null && errorMessage!.isNotEmpty;