heightPct method

double heightPct(
  1. double fraction
)

Returns fraction (0-1) of screen height in pixels

Implementation

double heightPct(double fraction) => fraction * heightPx;