errors property

Gets a map of field names and their errors.

Implementation

Map<String, List<ValidationError>> get errors =>
    data.map((key, field) => MapEntry(key, field.errors));