I'm making a multiple choice quiz app and am trying to get persistence of user answers. Users pick one of the answer choices and go to the next question using page state variables and firebase queries. When they return to a previously answered question, I want the user answer to be displayed.
I'm able to store user answers in an app state list of datatype "Answer schema" which contains the answertext and the question reference. However, I'm unable to filter the list based on the question reference to retrieve the corresponding answer text. Am I going about this the wrong way?