locale property

  1. @override
Locale? locale
override

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

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

The value may be null.

Implementation

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