Skip to main content

New site for Dart news and articles

For the latest Dart news, visit our new blog at  https://medium.com/dartlang .

Dart Editor adds Quick Fix support, plus more fixes

Posted by Devon Carew

A new Dart Editor build is available at www.dartlang.org/editorChanges include:
  • Support for method cascade syntax!
    • list..add('that')..add('is')..add('pretty')..add('cool')
  • Added quick fix support (aka auto-resolution of issues). Our initial quick fixes are:
    • to automatically add library import directives, and
    • to fix issues where static methods are incorrectly referenced as instance methods.
  • Add a new refactoring: the ability to convert if-else statements to conditional expressions and vice-versa.
  • Better support for using package: imports and setting --package-root in the Editor.
  • Also, some fixes to auto-indent, fixes to the outline and apps views, rename refactoring fixes, and 7 analysis fixes.
As always, view the changelog for the full list of changes, and to get started with the Editor see our tutorial.