title: How to get type of file?
body: <p>I'm trying to find a package which would recognise file type. For example </p>
  
  <pre class="lang-dart prettyprint-override"><code>final path = "/some/path/to/file/file.jpg";
  </code></pre>
  
  <p>should be recognised as image or</p>
  
  <pre class="lang-dart prettyprint-override"><code>final path = "/some/path/to/file/file.doc";
  </code></pre>
  
  <p>should be recognised as document</p>