Skip to content

New refactors for getter #60181

Open
Open
@FMorschel

Description

@FMorschel

Today we have the Extract Method refactor and a Convert Getter to Method rewrite. This request is actually a two part one:

  • If the extracted content has no need for local variables, suggest a new Extract Getter
  • If a method has no parameters and returns something other than void suggest a new Convert Method to Getter

We could also think about a similar requests for setters if the return type is void and it takes one parameter only, but that may be something that happens less frequently.

Any suggestions for this are appreciated.

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 refactorings

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions