val method

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

Implementation

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