minLines property

int? minLines
final

The minimum number of lines for the text to span.

When set, this ensures that the text takes up at least a certain number of lines, even if there's not enough text to fill them up.

A value of null means there is no minimum constraint on the number of lines. This allows the text to naturally take up as much space as it needs, based on its content.

When combined with maxLines, it provides a range within which the text can vary in length. For example, setting both minLines and maxLines to the same value would enforce a fixed number of lines.

Implementation

final int? minLines;