hasErrors property

bool get hasErrors

Checks if there are any validation errors.

Implementation

bool get hasErrors => errors.isNotEmpty;