Flutter: animate item removal in ListView : <p>I am building a ListView from a Stream. I need to animate deletions and insertions to that list, but have no idea how.</p>

<p>I have seen this sample by Flutter but it is not related to streams in any way: <a href="https://flutter.io/catalog/samples/animated-list/" rel="noreferrer">https://flutter.io/catalog/samples/animated-list/</a></p>

<p>Any help greatly appreciated :)</p>

<pre><code>new StreamBuilder(

    stream: feed.stream, // this is a Stream&lt;List&lt;Product&gt;&gt;

    builder: (context, snapshot) {
      if (!snapshot.hasData)
        return const Text('Loading products');
      return new ListView.builder(
          itemCount: snapshot.data.length,
          itemBuilder: (context, index) {
            Product product = snapshot.data[index];
            return new ProductWidget(product);
          });
    });
</code></pre>
