percentHeight method

double percentHeight(
  1. num percent
)

Get percentage of max height

Implementation

double percentHeight(num percent) {
  return maxHeight * (percent / 100);
}