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 - Ebean enhancement ignores a model -

ubuntu - How to disable Kernel Module Signing in linux -

SQL php on different pages to Insert (mysqli) -