ownOrParentParam<T> method

GgValue<T>? ownOrParentParam<T>(
  1. String name
)

Returns the param from this node or its parents.

Implementation

GgValue<T>? ownOrParentParam<T>(String name) {
  GgValue<T>? result;
  GgRouteTreeNode? node = this;
  while (node != null && result == null) {
    result = node.param<T>(name);
    node = node.parent;
  }

  return result;
}