title: Convert String path to File FLUTTER
body: <p>I have List containing paths like below</p>
  <pre><code>/storage/emulated/0/Whatsapp/Media/Whatsapp Images/IMG-20210623-WA0016.jpg
  </code></pre>
  <p>Converting it to file always returns false.</p>
  <pre><code> for (var i = 0; i &lt; tempLocations.length; i++) {
        print(tempLocations.length);
  
        File newFile = File(tempLocations[0]);
        if (await newFile.exists()) {
          print(&quot;true&quot;);
        } else {
          print(&quot;false&quot;);
        }
      }
  </code></pre>
  <p>How do i convert it to a file?</p>