Search code examples
android-studiodartflutternew-operatorfolding

AndroidStudio Code folding and optional new keyword in Dart 2


In Dart2 the use of new keyword is optional, but at 2/8/2019 Android Studio just let collapse/expand blocks if you are using new keyword!

enter image description here

Is there any plugin to solve it or we have to wait for new version of Android Studio? Because its very very useful feature.


Solution

  • This is a known issue and was fixed 3 weeks ago

    and should be included in the next Dart plugin version.