locale property

Locale? get locale

Used by this paragraph'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.

Implementation

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

The value may be null.

Implementation

set locale(Locale? value) {
  if (_textPainter.locale == value) return;
  _textPainter.locale = value;
  _overflowShader = null;
}