overflow property
TextOverflow?
get
overflow
How text that overflows its bounds should be handled (ellipsis, clip, fade, visible).
Setting this property updates the text painter's ellipsis and triggers a layout recalculation.
Implementation
TextOverflow? get overflow => _overflow;
set
overflow
(TextOverflow? value)
Implementation
set overflow(TextOverflow? value) {
if (_overflow == value) return;
_overflow = value;
_textPainter.ellipsis = value == TextOverflow.ellipsis ? '...' : null;
markNeedsLayout();
}