maxLines property
The number of lines before the text is truncated according to overflow
null
is valid and means that the text will not be truncated
If this is 1, text will not wrap. Otherwise, text will be wrapped at the edge of the box.
Implementation
final int? maxLines;