Constructor of subclass is incredibly verbose #36978
Labels
area-language
Dart language related items (some items might be better tracked at github.com/dart-lang/language).
type-enhancement
A request for a change that isn't a bug
Issue when invoking super of parent class. You have to write out every viable twice, once in the child constructor and then again inside super(). This is very verbose for classes with many variables. A constructor I just wrote at work was 32 lines.
But if I had syntax to say "you must pass every variable the super class needs" it would be only 1 line.
I would like to be able to do something like this:
The text was updated successfully, but these errors were encountered: