To create a new TextEditingController , just call the constructor . You can call it without the parameter, which means the initial text is empty. Usually it’s stored as a state variable. Optionally you can also set the initial value by passing text parameter.14 Mar 2020