invalidCount property

int get invalidCount

Count of required-but-empty (or otherwise invalid) cells across the grid.

Implementation

int get invalidCount => _rows.fold(
      0,
      (n, row) => n + columns.where((c) => c.errorFor(row[c.key] ?? '', row) != null).length,
    );