calculate method

double calculate(
  1. double flexFactor
)

Implementation

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