canShowError property

bool canShowError

Indicates if this state has error and is not initial.

Used for not show the error when hasInitialValue is false. Which mean that value was updated after be instantiate by the FieldBloc and has an error.

Implementation

bool get canShowError => hasDirt && hasError;