Skip to content

[linter proposal] member function can be staticΒ #59571

@stephane-archer

Description

@stephane-archer
class foo {
    String hello = "Hello World";
    ....
    void _bar(string s) {
        print(s)
    }
}

_bar does not use any member function so it can be static so it can be used by static and non-static function

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-linterIssues with the analyzer's support for the linter packagelinter-lint-proposaltype-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