didChangeTextScaleFactor method

void didChangeTextScaleFactor()
inherited

Called when the platform's text scale factor changes.

Implementation

void didChangeTextScaleFactor() {
  /// Called when the platform's text scale factor changes.
  ///
  /// This typically happens as the result of the user changing system
  /// preferences, and it should affect all of the text sizes in the
  /// application.
  ///
  /// This method exposes notifications from [Window.onTextScaleFactorChanged].
  /// See sample code below. No need to call super if you override.
  ///   @override
  ///   void didChangeTextScaleFactor() {
  ///     setState(() { _lastTextScaleFactor = ui.window.textScaleFactor; });
  ///   }
}