Dart 3.12 Ships Primary Constructors Behind an Experiment Flag
Dart 3.12 adds an experimental primary constructors syntax that declares fields and a constructor in the class header, collapsing the classic three-line data class to one.
Page 49 of 93