addEnter method

void addEnter()

添加回车字符

Implementation

void addEnter() {
  text = '$text\n';
  selection = TextSelection.collapsed(offset: text.length);
}