h static method

double h(
  1. num height
)

Calculates the height depending on the device's screen size

Eg: 20.h -> will take 20% of the screen's height

Implementation

static double h(num height) => height.h;