You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: AVOID extending a class that isn’t intended to be subclassed.
Dart doesn't allow finalclass.
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: