forceReBuild if true, it will call rebuild() after
the data is cleared.
forceClearLocalStorage makes sense only if you set
preserveLocalStorageOnControllerDispose to true for your controller.
This flag will clear your local storage
Retrieves a persistent data stored in SharedPreferences
You can use your own types here but in this
case you need to add json encoders / revivers so that
jsonEncode / jsonDecode could understand how to work with your type
view is a String that will be displayed
to a user. This must be null for text inputs
since they are updated on user input but for
other inputs e.g. a LiteDatePicker this must be a
formatted date representation
This is required to be able to keep form up to date
For example you might have remove some fields
from a form because of some user's actions
then we don't have to validate them any more
A real use case: User selects a MALE gender but
you had Pregnancy status drop selector and you want to
remove it for a male. There is not need to validate it but
the form has this field already registered