Sets the maximum number of lines for the text.
If the text exceeds the specified lines, it will be truncated according to the overflow property.
lines
overflow
Text maxLines(int lines) => _copyWith(maxLines: lines);