percentW method Null safety

double percentW(
  1. double n
)

Implementation

double percentW(double n) {
  return width * n / 100;
}