setMultiLine method

void setMultiLine(
  1. bool multiline
)

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;
  }
}