title: How to detect Materialized.js modal closing event?
body: <p>How to detect the closing event for <code>materialized.js</code>?</p>
  
  <p>I want to run some JavaScript code when the modal got closed either by clicking on modal close button or pressing escape button or clicking on any other area of the screen.</p>