locale property Null safety

Locale? 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.


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

The value may be null.


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