isError property

bool get isError

Check if response is an error

Implementation

bool get isError => error != null;