maxLines property

int? maxLines

Depends on whether this is multiline or not.

Implementation

int? get maxLines => multiline ? null : 1;