Allow multiple class{} blocks for same class if in same file (so we can have constructors in part files) #3173
Labels
feature
Proposed language feature that solves one or more problems
state-duplicate
This issue or pull request already exists
Many folks try to maintain short files. I often use Dart's part feature for this.
But if I have what would otherwise be a large class, I am limited in my ability to do this. In particular, all constructors must be in the main file.
So if I have multiple, complex constructors, my file gets big and I have no real way to mitigate this.
It would be useful if I can declare the components of a class in multiple files. The simple way to do this is to have multiple declarations of the same class in the same "file".
This sort of thing.
The text was updated successfully, but these errors were encountered: