percentageHeight method

double percentageHeight(
  1. double percentage
)

Returns the height calculated as a percentage of the total height.

Example:

double result = sizeConfig.percentageHeight(50);

Implementation

double percentageHeight(double percentage) =>
    percentageSize(height, percentage);