Open Pante opened 3 months ago
This is related to https://github.com/dart-lang/sdk/issues/59210 but maybe we over-stepped in treating abstract interface classes as "effectively" private?
/cc @lrhn
I think the dart-lang/sdk#59210 discussion was correct in saying that generative constructors of abstract non-extensible classes can be treated as private, because they have no valid public uses. That doesn't extend to factory constructors, which can be called and torn off just like any static method. (Yet another difference between factory and generative constructors which make it breaking to change one to the other.)
Describe the issue
public_member_api_docs
does not flag constructors in abstract interface classes that are undocumented.To Reproduce
Expected behavior The constructors should be flagged as undocumented, similar to how they are flagged in abstract & interface classes.