locale property

Locale? locale

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.


Locale? get locale => _textPainter.locale;
void locale=(Locale? value)


set locale(Locale? value) {
  if (_textPainter.locale == value) {
  _textPainter.locale = value;