title: Dart accessing the name of a File or Directory
body: <p>How do I read the name of a File or a Directory?</p>
  
  <p>There is a property 'path' but that returns the entire file path.</p>
  
  <p>Would be nice to have a property like 'name' that just returns the last part of the path.</p>
  
  <p>In Java there is a method called File.name();</p>