hasError property

bool hasError

Indicates whether the bloc has an error.

Implementation

bool get hasError => error != null;