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

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

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

java - Cannot secure connection using TLS -