FdcRecordValidator typedef

FdcRecordValidator = List<FdcValidationError> Function(FdcRowContext row)

Validates a row as a whole after field-level values are available.

Return an empty list when the row is valid. Returned errors may target a specific field or the whole record. The validator may read sibling values from FdcRowContext and should not mutate dataset state.

Implementation

typedef FdcRecordValidator =
    List<FdcValidationError> Function(FdcRowContext row);