getHeightOfCanvas function

double getHeightOfCanvas(
  1. Matrix matrix,
  2. double defaultCellHeight,
  3. EdgeInsets cellPadding
)

Implementation

double getHeightOfCanvas(
    Matrix matrix, double defaultCellHeight, EdgeInsets cellPadding) {
  double height = 0.0;
  for (int y = 0; y < matrix.height(); y++) {
    height += (getHighestHeightInARow(matrix, defaultCellHeight, y) +
        cellPadding.top +
        cellPadding.bottom);
  }
  return height;
}