heightFraction static method

double heightFraction({
  1. required double fraction,
})

Return the

Implementation

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