void setText( String value, { bool moveCursorToEnd = true, }) { text = value; if (moveCursorToEnd) { selection = TextSelection.collapsed(offset: text.length); } }