Skip to content

add support for generating common functions (copyWith, to/fromMap, to/fromJson)  #48971

Open
@pq

Description

@pq

Form a discussion on flutter-insiders:

Some common things could be included too in the Generate... menu, like the copyWith method or the toMap, fromMap (from and to json)

Currently the "Generate..." menu produces this in IntelliJ

image

@DanTup: do we have similar support in VSCode?

(And are these current menu items implementing in IntelliJ or server-provided?)

/cc @stevemessick

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requestarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-refactoringIssues with analysis server refactoringstype-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions