Introduce a shorthand syntax to reuse ancestor constructors without having to duplicate the signature #22274
Labels
area-language
Dart language related items (some items might be better tracked at github.com/dart-lang/language).
core-m
type-enhancement
A request for a change that isn't a bug
I have an abstract class with the following constructor. It has 5 subclasses, each of which should have that exact same constructor. For reasons that I hope are obvious, I don't really want to have to write out that whole signature six times, plus 5 occurrences of referencing the superclass constructor listing all the arguments...
Lasse suggests allowing a shorthand syntax for declaring constructors that just redirect to the superclass:
The text was updated successfully, but these errors were encountered: