maxLines property
int?
get
maxLines
Maximum laid-out line count, or null for no line-count limit.
Must be null (unlimited) or a positive integer. Zero and negatives are programmer errors and throw ArgumentError before storage.
Implementation
int? get maxLines => _maxLines;
set
maxLines
(int? value)
Updates the maxLines value.
Implementation
set maxLines(int? value) {
final validated = _validatedMaxLines(value);
if (_maxLines == validated) {
return;
}
_maxLines = validated;
markNeedsLayout();
}