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