title: Flutter, how to use confirmDismiss in Dismissible?
body: <p>What I have: </p>
  
  <pre><code>Dismissible(
      key: Key(state.threads[index].toString()),
      onDismissed: (direction) {
          setState(() {
              state.threads.removeAt(index);
          });
      },
  );
  </code></pre>
  
  <p>Works fine. I can dismiss items with left swipe. However I'd want to confirm the action and what I understood and read I should use is</p>
  
  <p><code>confirmDismiss:</code></p>
  
  <p>However as a beginner and with lack of examples, plus the documentation literally explaining nothing for me that I understand. How to achieve this?</p>