maxLines property
An optional maximum number of lines for the text to span, wrapping if necessary.
If the text exceeds the given number of lines, it is truncated such that subsequent lines are dropped.
After this is set, you must call layout before the next call to paint.
Implementation
int? get maxLines => _maxLines;
The value may be null. If it is not null, then it must be greater than zero.
Implementation
set maxLines(int? value) {
assert(value == null || value > 0);
if (_maxLines == value) {
return;
}
_maxLines = value;
markNeedsLayout();
}