constrainHeight method

double constrainHeight([
  1. double height = double.infinity
])

Implementation

double constrainHeight([double height = double.infinity]) {
  return height.clamp(minHeight, maxHeight);
}