minLines property

int minLines

The minimum number of lines to occupy when the content spans fewer lines. When maxLines is set as well, the height will grow between the indicated range of lines. When maxLines is null, it will grow as high as needed, starting from minLines.

See the examples in maxLines for the complete picture of how maxLines and minLines interact to produce various behaviors.

Defaults to null.

Implementation

int get minLines => _minLines;
void minLines= (int value)

The value may be null. If it is not null, then it must be greater than zero.

Implementation

set minLines(int value) {
  assert(value == null || value > 0);
  if (minLines == value)
    return;
  _minLines = value;
  markNeedsTextLayout();
}