Predicate function to test if a cell matches certain criteria.
Used internally for filtering and testing cells based on their index and span values.
typedef CellPredicate = bool Function(int index, int span);