isValid property

bool get isValid

Whether all validation rules passed (no errors).

Implementation

bool get isValid => errors.isEmpty;