pixelPercentage method
Converts the initial pixel size to pixels based on the device type, considering the screen variant.
Example:
double result = sizeConfig.pixelPercentage(percentage);
Implementation
double pixelPercentage(double percentage) {
if (percentage > 100) return _detectedPixel;
if (percentage < 0) return 0;
return _detectedPixel * (percentage / 100);
}