title: How do you import a reference to a dart file when you only know the file name? Extension methods and others
body: <p>To import a file in Dart (using IntelliJ) I will usually use start typing the name of a function, class or variable and select enter.  Alternatively I might type the name of the class and press alt+enter on it.  This will then give me an option to import the file reference.</p>
  <p>For extension methods this doesn't work and sometimes I know the name of the package (file) I want to import but can't remember the name of the function.</p>
  <p>Is there a way to use the filename to lookup and insert an import statement with the full package address?</p>
  <h1>Edit</h1>
  <p>Unfortunately my originally accepted answer doesn't always work.  For example with extension methods.  I'm trying to add a reference and it seems impossible to do without typing the full reference to the extension.</p>
  <p><a href="https://i.stack.imgur.com/4uWh1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4uWh1.png" alt="enter image description here" /></a></p>
  <h2>Edit2</h2>
  <p>Found out there is an open issue to fix this</p>
  <p><a href="https://github.com/dart-lang/sdk/issues/40365" rel="nofollow noreferrer">https://github.com/dart-lang/sdk/issues/40365</a></p>