title: is it Possible to Implement a Dismissible widget for a button inside a SliverList in flutter
body: <p>so lets say I have built a sliverlist that looks like this. </p>
  
  <pre><code>return new Container(
                child: new CustomScrollView(
              scrollDirection: Axis.vertical,
              shrinkWrap: false,
  
              slivers: &lt;Widget&gt;[
                new SliverPadding(
                  padding: const EdgeInsets.symmetric(vertical: 2.0),
                  sliver: new SliverList(
                    delegate: new SliverChildBuilderDelegate(
                        (BuildContext context, int index) {
                      ModelClass class= _List[index];
  
                      return new Dismissible(
                        key: new ObjectKey(_List[index]),
                        child: ModelCard(class),
                        onDismissed: (DismissDirection direction) {
                          setState(() {
                            _List.removeAt(index);
  
                            direction == DismissDirection.endToStart;
                          });
                        },
                        background: new Container(
                            color: const Color.fromRGBO(183, 28, 28, 0.8),
                            child: new Center(
                              child: new Text(
                                "Item Removed",
                                style: new TextStyle(color: Colors.white),
                              ),
                            )),
  
                      );
  
                      // return new ModelCard(class);
                    }, childCount: _List.length),
                  ),
                ),
              ],
            ));
  </code></pre>
  
  <p>and now i have a stateless widget called ModelCard to populate the list like this one </p>
  
  <pre><code>   new Container(
                      padding: EdgeInsets.fromLTRB(80.0, 10.0, 0.0, 0.0),
                      child: new Text(
                        "${class.listDescription}",
                        style: new TextStyle(),
                      ),
                    ),
  </code></pre>
  
  <p>now I want to have an Icon button to dismiss an item so i added it inside the card </p>
  
  <pre><code>new Container(
                      padding: EdgeInsets.fromLTRB(350.0, 20.0, 0.0, 0.0),
                      child: new IconButton(
                          icon: new Icon(Icons.delete), onPressed: () {}),
                    ),
  </code></pre>
  
  <p>How would you implement the dismissible widget inside an icon button that dismiss an Item in a list when pressed in flutter?</p>