Describe the bug
Create this class:
class _MyClass {
int? param;
_MyClass({
this.param,
});
}
Now hit save. You get:
class _MyClass {
int? param;
_MyClass();
}
this.param is removed automatically, because it is (as yet) unused.
This is not good default behavior. (Or maybe I accidentally enabled it in my settings, but it's not good behavior in general.)
Please complete the following information:
- Operating System and version: Linux
- VS Code version: code-1.80.1-1689183644.el7.x86_64
- Dart extension version:
- Dart/Flutter SDK version: 3.0.6
- Target device (if the issue relates to Flutter debugging):
Describe the bug
Create this class:
Now hit save. You get:
this.paramis removed automatically, because it is (as yet) unused.This is not good default behavior. (Or maybe I accidentally enabled it in my settings, but it's not good behavior in general.)
Please complete the following information: