pixel method
Converts the initial pixel size to pixels based on the device type, considering the screen variant.
Example:
double result = sizeConfig.pixel(initialSize);
Implementation
double pixel(double? initialSize, [bool any = true]) {
final x = (initialSize ?? 0) / _screenVariant;
final v = !any && x < 0 ? 1.0 : x;
return percentageSize(_detectedPixel, v);
}