maxLines property

int? maxLines
final

Maximum number of lines for a multiline TextField. If set, the keyboard will be automatically set to TextInputType.multiline, and will be removed any obsfuscation implementation, since Flutter doesn't allow maxLines and obscureText to coexist. Moreover, if height is not specified, it will be automatically set based on the number of maxLines.

Implementation

final int? maxLines;