hasError property

bool get hasError

Checks if the model has any errors.

Implementation

bool get hasError => errors.isNotEmpty;