getHighestHeightInARow function
Implementation
double getHighestHeightInARow(Matrix matrix, double defaultCellHeight, int y) {
return matrix.s[y].fold(
0,
(acc, cell) => max(
acc,
cell == null
? defaultCellHeight
: cell.all.fold(
0,
(prev, node) => node.size == null
? defaultCellHeight
: node.size!.height)));
}