toMaxHeight method

double toMaxHeight(
  1. double oldMaxHeight,
  2. dynamic newMaxHeight
)

Implementation

double toMaxHeight(double oldMaxHeight, newMaxHeight) {
  if (oldMaxHeight > newMaxHeight) {
    return oldMaxHeight;
  } else {
    return newMaxHeight;
  }
}