getHPercent method

dynamic getHPercent(
  1. int percent
)

Implementation

getHPercent(int percent) => height * (percent/100);