space method

double space(
  1. double? initialSize
)

Converts the initial size to pixels based on the device type and font variant.

Example:

double result = sizeConfig.space(initialSize);

Implementation

double space(double? initialSize) {
  final x = (initialSize ?? 0) / _screenVariant;
  final v = x < 0 ? 1.0 : x;
  return percentageSize(_detectedSpace, v);
}