handleFontScaleChanged method

void handleFontScaleChanged(
  1. double newScale
)

Handles the font scale change event.

This method calls the onFontScaleChanged callback with the provided newScale and then calls handleUpdateUI.

Implementation

void handleFontScaleChanged(double newScale) {
  onFontScaleChanged?.call(newScale);
  handleUpdateUI();
}