Skip to content

Dart doesn't allow final class #987

Open
@dev-aentgs

Description

@dev-aentgs

Description:
Effective dart guidelines mention the following.
AVOID extending a class that isn’t intended to be subclassed.

Like in java, in this case allowing the class to be marked as final would prevent another class from inheriting it, dart doesn't allow final class.
What would be the side effects if this was allowed?
Would this be a breaking change?

effective dart #2440

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureProposed language feature that solves one or more problems

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions