title: How to update data in an AnimatedList in Flutter
body: <p>How do you update data (add, remove rows) in an AnimatedList in Flutter? I can do it in a ListView by just updating the backing data and calling <code>setState</code>. For example,</p>
  
  <pre><code>setState(() {
    _data.insert(2, 'pig');
  });
  </code></pre>
  
  <p>It seems more complicated in an AnimatedList, though.</p>