locale property Null safety
Used by this renderer's internal TextPainter to select a locale-specific font.
In some cases the same Unicode character may be rendered differently depending on the locale. For example the '骨' character is rendered differently in the Chinese and Japanese locales. In these cases the locale may be used to select a locale-specific font.
If this value is null, a system-dependent algorithm is used to select the font.
Implementation
Locale? get locale => _textPainter.locale;
Implementation
set locale(Locale? value) {
if (_textPainter.locale == value) {
return;
}
_textPainter.locale = value;
markNeedsTextLayout();
}