isLastEventError property

bool get isLastEventError

Returns true if the last emitted event is an error event.

Implementation

bool get isLastEventError => lastEventOrNull?.isError ?? false;