Skip to content

Accessing FormBuilderState currentState value within dispose #1260

Closed Answered by deandreamatias
judsonjames asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, sorry for delay response
Maybe you can use onChange property of FormBuilder to save values when changes.
Remember to use _formKey.currentState?.instantValue instead _formKey.currentState?.value, like I explain here.
Also, the getters _formKey.currentState?.isDirty and _formKey.currentState?.isTouched can be useful

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by deandreamatias
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
awaiting author response Waiting for author of issue to respond with more info
2 participants