Return the
static double heightFraction({ required double fraction, }) { assert( fraction < 1, 'fraction must be lower than 1', ); return _screenHeight * fraction; }