Description:
Effective dart guidelines mention the following.
AVOID extending a class that isn鈥檛 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?
We do have a @sealed annotation for the present. But it's not a hard language feature, just for static analysis.
https://github.com/dart-lang/language/issues/349 is a related issue.
see also #11
See proposed solution at https://github.com/dart-lang/language/issues/704
Most helpful comment
We do have a @sealed annotation for the present. But it's not a hard language feature, just for static analysis.
https://github.com/dart-lang/language/issues/349 is a related issue.