setMultiLine method
Implementation
void setMultiLine(bool multiline) {
if (multiline) {
oldAlign = textAlignVertical;
textInputType = TextInputType.multiline;
textInputAction = TextInputAction.newline;
textAlignVertical = TextAlignVertical.top;
} else {
textAlignVertical = oldAlign;
setTextInputType(returnKeyTypeStr);
setKeyboardType(keyboardTypeStr);
numberOfLine = 1;
}
}