Skip to content

analyzer could suggest to put class const #60960

Open
@EArminjon

Description

@EArminjon
class Welcome {
  Welcome(this.number);

  final int number;
}

void main() {
  Welcome(1);
}

Welcome class can be const, analyzer could suggest it ;).

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-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-proposal

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions