wordBreak property
Implementation
@override
WordBreak get wordBreak {
if (_wordBreak != null) return _wordBreak!;
_ensureLayoutPassInheritedTextCache();
if (_layoutPassInheritedWordBreak != null) {
return _layoutPassInheritedWordBreak!;
}
final WordBreak resolved = parent?.wordBreak ?? WordBreak.normal;
if (_canUseLayoutPassInheritedTextCache) {
_layoutPassInheritedWordBreak = resolved;
}
return resolved;
}
set
wordBreak
(WordBreak? value)
Implementation
set wordBreak(WordBreak? value) {
if (_wordBreak == value) return;
_wordBreak = value;
// Text-related inherited property affects text layout of descendants
_markChildrenTextNeedsLayout(this, 'wordBreak');
}