fontScale property
Sets the font scale to a new value.
The new value is adjusted to one decimal place before being set. After setting the new value, the state is updated and the textEditorCallbacks are notified of the change.
value
- The new font scale value.
Implementation
set fontScale(double value) {
_fontScale = (value * 10).ceilToDouble() / 10;
setState(() {});
textEditorCallbacks?.handleFontScaleChanged(value);
}