module - Dart library import shortcuts -


in cases have import main file library in dart have do:

import 'package:<package_name>/<package_name>.dart'; 

is there shorthand doing in dart?

something like

import 'package:<package_name>'; 

cause mentioning package name twice seems redundant.

seems redundant there no way around. new "add import" quick fix makes non-issue imho.

  • darteditor ctrl+1
  • webstorm/intellij ctrl+enter

you have wait until analyzing done , hint/warning (wiggled underline) shown.


Comments

Popular posts from this blog

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - UML - How would you draw a try catch in a sequence diagram? -

c++ - No viable overloaded operator for references a map -