percentageFontSize method

double percentageFontSize(
  1. double percentage
)

Returns the font size calculated as a percentage of the detected pixel size.

Example:

double result = sizeConfig.percentageFontSize(50);

Implementation

double percentageFontSize(double percentage) =>
    percentageSize(_detectedPixel, percentage);