hasError property

bool hasError
inherited

Indicates whether the bloc has an error.

Implementation

bool get hasError => error != null;