title: How do I open a file from disk, in a Flutter app?
body: <p>In a Flutter app I have a dart file located at <code>FlutterTest\sandbox\lib\my_widget\my_widget.dart</code>.</p>
  
  <p>And I have an image located at <code>FlutterTest\sandbox\lib\my_widget\imgs\myImage.png</code>.</p>
  
  <p>From <code>my_widget.dart</code> how can I point a file to this image, something along the lines of <code>new File("???\my_widget\myImage.png")</code>?</p>
  
  <p>Just to clarify, in Java I could do something like <code>MyClass.class.getResource("myImage.png").toString()</code>.</p>
  
  <p>By the way if I <code>print(Directory.current.path)</code> it gives me simply <code>/</code>. And if I try to list the contents of this directory it tells me: <em>"Directory listing failed, path = '/' (OS Error: Permission denied, errno = 13)"</em>. So I don't actually know where the current directory is.</p>