-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
P3A lower priority bug or feature requestA lower priority bug or feature requestarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-refactoringIssues with analysis server refactoringsIssues with analysis server refactoringstype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)Incorrect behavior (everything from a crash to more subtle misbehavior)
Description
If I have this code (newly added newField):
class SubtypeNaming {
const SubtypeNaming({
this.prefix,
this.suffix,
this.containing,
bool newField = false,
});
final String? prefix;
final String? suffix;
final String? containing;
}And I use Bind all parameters to fields, this is the output:
class SubtypeNaming {
const SubtypeNaming({
this.prefix,
this.suffix,
this.containing,
this.newField = false,
});
final String? prefix;
final String? suffix;
final String? containing;
final String? suffix;
final String? containing;
final bool newField;
}I'm not sure why, but it readds existing fields. Also, I couldn't figure out why it skipped prefix in this operation.
Would you like to work on this, @mosuem? If you don't, I'll happily do it.
Metadata
Metadata
Assignees
Labels
P3A lower priority bug or feature requestA lower priority bug or feature requestarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-refactoringIssues with analysis server refactoringsIssues with analysis server refactoringstype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)Incorrect behavior (everything from a crash to more subtle misbehavior)