isFailed property

bool get isFailed

True for failed requests (i.e. neither successful nor pending)

Implementation

bool get isFailed => !isSuccessful && !isPending;