calculate method

double calculate(
  1. double highestCell
)

Implementation

double calculate(double highestCell) {
  var rowHeight = highestCell;
  if (minHeight != null && minHeight! > rowHeight) {
    rowHeight = minHeight!;
  }
  if (maxHeight != null && maxHeight! < rowHeight) {
    rowHeight = maxHeight!;
  }
  return rowHeight;
}