maxLines property

int? maxLines
final

The maximum number of lines to apply to the text.

If maxLines is provided, it limits the number of lines displayed in the text. If not specified, the default value is 2.

Implementation

final int? maxLines;