percentHeight method

double percentHeight(
  1. double percent
)

Implementation

double percentHeight(double percent) => height * percent;