Skip to content

Provide linter guidance around List constructors #58716

@goderbauer

Description

@goderbauer

This stack overflow answer basically argues agains using list constructors to create lists: https://stackoverflow.com/a/61541310

It would be cool if some (all?) of that advice there could be encoded in lint rules to gently remind people that there are better ways to create lists than these constructors.

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