Listen to the controller for changes

Finally, listen to the TextEditingController and call the
_printLatestValue() method when the text changes. Use the
addListener() method for this purpose.

Begin listening for changes when the
_MyCustomFormState class is initialized,
and stop listening when the _MyCustomFormState is disposed.

Interactive example

Create and style a text field

Retrieve the value of a text field