fz method

double fz(
  1. double value
)

Font size with clamp and accessibility support (matches .fz)

Implementation

double fz(double value) {
  final g = responsiveData;
  double size = value * g.scaleFactor;
  if (g.config.respectTextScaleFactor) {
    size *= g.textScaleFactor;
  }
  return size.clamp(g.config.minFontSize, g.config.maxFontSize);
}