textScaleFactor property
final
A value that represents the current user preference for the scaling factor for fonts.
This numeric value is typically used to compare SystemTextScalers. Two SystemTextScaler instances with the same textScaleFactor are considered equal as their scale methods produce the same output when given the same input font size. However, textScaleFactor should not be used in arithmetic operations.
Implementation
// TODO(LongCatIsLooong): consider changing the type to Comparable<OpaqueWrapper>
// once `MediaQueryData.textScaleFactor` is removed:
// https://github.com/flutter/flutter/issues/128825.
@override
final double textScaleFactor;