Resolving Dart external name from dependencies in WebStorm

After several months with WebStorm, I was still wondering why sometimes a class or function from an external Dart package was not resolved when trying to go to its definition. It turns out that i need to include the package(s) manually

https://www.jetbrains.com/webstorm/help/managing-dart-packages-and-assets.html

The simplest I found was to right click on the packages directory at the root and to right click Mark Directory As | Cancel Exclusion, although sometimes selecting only the packages I import was sufficient.


Popular posts from this blog

Fixing "DerInputStream.getLength(): lengthTag=109, too big" in Android Studio

Simple Samba setup on Lubuntu

Solving: insufficient permissions for device: user in plugdev group; are your udev rules wrong