h property

double h

Calculates the height depending on the device's screen size

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

Implementation

double get h => this * Device.height / 100;