onSaved. An optional method to call with the final value when the form is saved via FormState .
Read moreWhat is the difference between TextField and TextFormField?
TextField is a simple text field. (you don’t care about user input) TextFormField is a text field to be used in a form (you care about user input) . If you don’t need to validate TextField . If you need to validate user input, use TextFormField with validator .
Read more