title: Losing data when user terminates app then runs it again
body: <p>I use firebase in almost all my app and after a doc is added I add it to a variable to structure the data and organize it but however when app is terminated then ran again the variable resets although firebase docs are added to it in the first place.</p>
  <p><strong>How can I fix that?</strong></p>
  <p>An example clarifying what I mean:</p>
  <pre><code>    //add to firebase 
  final doc = &lt;String, dynamic&gt;{
                  'docType':'firebase'
      };
                await collection.add(doc);
  //add to a model's variable
  
  context.read&lt;Model&gt;().addDoc(doc['docType']);
  </code></pre>