3 ms·
Dart uses the following sugar for a "simple" constructor: Color(this.rgba); That is, it directly assigns the argument to the slot (which must be defined a
by mborch 11y ago
Dart uses the following sugar for a "simple" constructor:
Color(this.rgba);
That is, it directly assigns the argument to the slot (which must be defined at class-level.)
Of course, it's still repeating the class name but that's solvable.