title: Reset ChangeNotifier Values when re entering a page Flutter
body: <p>I am making a quiz app. Once I submit a quiz and come back to the same page I want all the values to have been reset.</p>
  <p>I have found that this is because when I open the page the first time a new ChangeNotifier object is created but if the user comes back to the page it just reuses the same one. I would like to delete and create a new one or reset the original.</p>
  <p>Here is my ChangeProvider</p>
  <pre><code>class ARVariables with ChangeNotifier {
    int questionnumber = 0;
    bool submitted = false;
    List&lt;int&gt; selectedanswers = List.filled(_questions.length, -1);
    List&lt;int&gt; scores = List.filled(_questions.length, 0);
    List&lt;int&gt; unselectedanswers = [];
    List&lt;int&gt; intervals = [4, 8, 12, 16, 20];
  
    // some methods here
  }
  
  </code></pre>
  <p>I ideally would like something like either be able to modify the ARVariables object in the initState or delete the object when leaving the page so that a new one is made upon load.</p>
  <p>Thanks</p>