Experimental: this API is experimental and might be changed or removed in the future.

TextField.multiline

切换到手册
public bool multiline ;

描述

要允许文本字段中有多行字符,则将此设置为 true,否则设置为 false。