Skip to content

Add shorcut for adding a field as a named parameter #6868

@feinstein

Description

@feinstein

Currently when I create a class with a final parameter, I have a hint from the IDE to add that field into the constructor. Currently it creates as a simple parameter, such as MyClass(this.myField), and I can also change it to a normal parameter, where it goes into the initialization list.

Since Flutter uses lots of named parameters, it will be very helpful if we could have the option to also have that field being added into the constructor as a named parameter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions