hasErrors property Null safety

bool hasErrors

True whether the control has validation errors.

Implementation

bool get hasErrors => errors.isNotEmpty;