Named parameter with underscore in Dart class
You can, but not with the this.variable
syntax
const Person({ String name}) : _name = name;
You can, but not with the this.variable
syntax
const Person({ String name}) : _name = name;