clampTextScale static method

double clampTextScale(
  1. double textScaleFactor
)

Clamps textScaleFactor to the allowed range.

Implementation

static double clampTextScale(double textScaleFactor) =>
    textScaleFactor.clamp(minTextScaleFactor, maxTextScaleFactor);