Skip to content

suppress invalid_use_of_protected_member on extensions of the containing class #7315

@anqit

Description

@anqit

Page URL

https://dart.dev/tools/diagnostics/invalid_use_of_protected_member

Page source

No response

Describe the problem

Consider suppressing invalid_use_of_protected_member when referring to a protected element of class A from an extension on A.

Expected fix

invalid_use_of_protected_member warning is not shown

Additional context

No response

I would like to fix this problem.

  • I will try and fix this problem on dart.dev.

Metadata

Metadata

Assignees

No one assigned

    Labels

    from.page-issueReported in a reader-filed concern

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions