handleFontScaleChanged method
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();
}