onTextScaleFactorChanged property Null safety

VoidCallback? 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;
void onTextScaleFactorChanged= (VoidCallback? callback)

Implementation

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