percentH method Null safety

double percentH(
  1. double n
)

Implementation

double percentH(double n) {
  return height * n / 100;
}