hasError property

bool get hasError
inherited

Indicates whether the bloc has an error.

Implementation

bool get hasError => error != null;