bool testRow(int index, int span) { for (final ref in frozenRows) { if (ref.test(index, span)) { return true; } } return false; }