dynamic val(String path, [ value = unspecified ])

Source

dynamic val(String path, [value = unspecified]) {
  if (value is Unspecified) {
    return this[path].lastValueUpdate.value;
  } else {
    updateValue(path, value);
    return value;
  }
}