heightPct method

double heightPct(
  1. double percent
)

Returns percent (1-100) of screen height in pixels

Implementation

double heightPct(double percent) => percent * heightPx / 100;