maxLines method

Text maxLines(
  1. int lines
)

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.

Implementation

Text maxLines(int lines) => _copyWith(maxLines: lines);