hasError property

bool get hasError

Whether the field currently has a validation error.

Implementation

bool get hasError => _errorText != null;