Skip to content

Feature request: expanded usage for @reopen #57094

@nate-thegrate

Description

@nate-thegrate

When a @protected method (such as State.dispose) is overridden, it loses its "protected" status unless the annotation is re-applied.

This has resulted in some less-than-ideal Flutter autofill suggestions:

navigator dispose


Proposal

Maybe the @reopen annotation's usage could be expanded to cover class fields as well: restrictive annotations like @protected would apply to any subtype's overridden fields by default, unless the field is "re-opened".

(Would an analyzer change like this one count as "breaking"?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4area-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-pkg-metaIssues related to package:metatype-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