Skip to content

[quickfix] inline_local_variable #60177

@stephane-archer

Description

@stephane-archer
void main(){
    final str = "Hello World!";
    print(str);
}

because str is used only once in the function let's chain the function calls with a quick fix

void main(){
    print("Hello World!");
}

that removes a lot of unnecessary local variable

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions