title: How to implement an onTap method for ListTile that removes itself from ListView when tapped?
body: <p>I want to implement onTap method for my ListTile that so that I can remove it by tapping. I can't think of any way besides extracting the ListTile widget and passing in the list as a parameter but that obviously is gonna lead to circular reference.</p>
  
  <p>Sample code </p>
  
  <pre><code>List&lt;ListTile&gt; list = [
   ListTile( onTap: () { /*Remove itself from the list*/ }, title: /*sometext*/ ),
   ListTile( onTap: () { /*Remove itself from the list*/ }, title: /*sometext*/ ),
   ListTile( onTap: () { /*Remove itself from the list*/ }, title: /*sometext*/ ),
  ];
  
  class SetupScreen extends StatefulWidget {
    @override
    _SetupScreenState createState() =&gt; _SetupScreenState();
  }
  
  class _SetupScreenState extends State&lt;SetupScreen&gt; {
  @override
    Widget build(BuildContext context) {
      return Scaffold(
        body: SafeArea(
          child: Padding(
            padding: EdgeInsets.symmetric(horizontal: 7, vertical: 12),
            child: ListView.builder(
             itemCount: list.length,
             itemBuilder: (BuildContext context, int index) {
                return list[index];
             },
            ),
           ),
          ),
         };
  }
  }
  </code></pre>
  
  <p>I appreciate any suggestion on how to handle this</p>