Skip to content

'Effective Dart: Design' page  #2440

@dev-aentgs

Description

@dev-aentgs

Page URL: https://dart.dev/guides/language/effective-dart/design
Page source: https://github.com/dart-lang/site-www/tree/master/src/_guides/language/effective-dart/design.md

Description:
AVOID extending a class that isn’t intended to be subclassed.
Dart doesn't allow final class.
Like in java, in this case allowing the class to be marked as final would prevent another class from inheriting it.
What would be the side effects if this was allowed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions