getHighestHeightInARow function

double getHighestHeightInARow(
  1. Matrix matrix,
  2. double defaultCellHeight,
  3. int y
)

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)));
}