hyphens property
The behavior of soft hyphens (U+00AD) at a line break.
Defaults to Hyphens.manual, which renders a hyphen glyph at a line break that falls on a soft hyphen. Hyphens.hidden suppresses the glyph; the line still breaks at U+00AD regardless.
Not yet supported on the web, where the hyphen glyph is never rendered.
Implementation
ui.Hyphens get hyphens => _textPainter.hyphens;
Implementation
set hyphens(ui.Hyphens value) {
if (_textPainter.hyphens == value) {
return;
}
_textPainter.hyphens = value;
_overflowShader = null;
// The rendered hyphen doesn't change where lines break, but it makes its
// line wider, which changes the paragraph's longest line and so its size
// with TextWidthBasis.longestLine. Hence markNeedsLayout, not markNeedsPaint.
markNeedsLayout();
}