expands property Null safety

bool expands
final

If true, the height of the input field will be as large as possible.

If wrapped in a widget that constrains its child's height, like Expanded or SizedBox, the input field will only be affected if expands is set to true.

See TextField.minLines and TextField.maxLines for related ways to affect the height of an input. When expands is true, both must be null in order to avoid ambiguity in determining the height.

Defaults to false.

Implementation

final bool expands;