getParentValue method

V? getParentValue(
  1. Node? child, {
  2. bool includePurgedEntries = false,
})
inherited

Get 1st parent value of child;

Implementation

V? getParentValue(K? child, {bool includePurgedEntries = false}) {
  if (child == null) return null;

  var parent = getParentKey(child);
  return parent != null
      ? (includePurgedEntries
          ? getAlsoFromPurgedEntries(parent)
          : get(parent))
      : null;
}