hp method

double hp(
  1. double percent
)

Percentage of screen height (e.g. context.hp(25) = 25% of screen height)

Implementation

double hp(double percent) => (percent / 100) * responsiveData.height;