title: How to run code after showDialog is dismissed in Flutter?
body: <p>How to update the Homepage just after the <code>showDialog()</code> is dismissed/disposed? Doesn't seem like it has an <code>onDispose()</code> function.</p>
  
  <p>Found another possible Answer : The <code>WillPopScope</code> can help detect if the back button is pressed.</p>
  
  <p>The widget that will be used in the <code>showDialog</code>, in its build function the widget can be wrapped in <code>return new WillPopScope(child: ______, onWillPop: _______);</code> The code can be run in the <code>onWillPop</code> function. This can update the Homepage below.</p>