textScaleFactor property Null safety
override
The system-reported text scale.
This establishes the text scaling factor to use when rendering text, according to the user's platform preferences.
The onTextScaleFactorChanged callback is called whenever this value changes.
See also:
- WidgetsBindingObserver, for a mechanism at the widgets layer to observe when this value changes.
Implementation
@override
double get textScaleFactor => _textScaleFactorTestValue ?? _platformDispatcher.textScaleFactor;