hasError property

bool get hasError

Indicates whether the bloc has an error.

Implementation

bool get hasError => error != null;