FormField
A FormField is a MutableStateFlow, so it can be collected and its value updated like any other MutableStateFlow.
But it also has parameters that make it suitable for use in a form, such as validators, error stateflow, feedback stateflow, and focus request.
Form field validators are run in the order they are added to the form field. If a validator fails, the remaining validators are not run. If you make use of the feedback property, it might be best practice to add only one validator.
Parameters
Whether this form field is optional or not. If true, the form field value is required to be non-null or non-empty to be validated. If false, the field value is optional and will be valid if it is empty or null.
Note that if required is false and the value of this form field is neither null nor empty, the field will be validated as if it were required.
The initial value of this form field. Would typically be null or an empty string unless the form field is pre-filled (no pun intended).