percentHeight static method

double percentHeight(
  1. double percent
)

Returns height scaled by percentage (0-100).

Implementation

static double percentHeight(double percent) {
  _assertInitialized();
  assert(
    percent >= 0 && percent <= 100,
    'Percent must be between 0 and 100.',
  );
  return height * (percent / 100);
}