I find myself trying a couple of things before looking at the documentation about how to write a get/set property in Dart. I go
get int val => _val;
int val get => _val
val set(v) => _val = v;
and it does not make sense what the syntax should be. Is there an easy to remember rule-of-thumb for property syntax?