To retrieve the value when it changes,
see the Handle changes to a text field recipe.

TextFormField

TextFormField wraps a TextField and integrates it
with the enclosing Form.
This provides additional functionality,
such as validation and integration with other
FormField widgets.

Interactive example

For more information on input validation, see the
Building a form with validation recipe.

Build a form with validation

Handle changes to a text field