hasError property

bool get hasError

Returns true if this field has an error message.

This is a convenience getter that checks if error is not null.

Implementation

bool get hasError => error != null;