onTextScaleFactorChanged property

VoidCallback? get onTextScaleFactorChanged

A callback that is invoked whenever textScaleFactor changes value.

The framework invokes this callback in the same zone in which the callback was set.

See also:

Implementation

VoidCallback? get onTextScaleFactorChanged => _onTextScaleFactorChanged;
set onTextScaleFactorChanged (VoidCallback? callback)

Implementation

set onTextScaleFactorChanged(VoidCallback? callback) {
  _onTextScaleFactorChanged = callback;
  _onTextScaleFactorChangedZone = Zone.current;
}