traverseAncestors method

void traverseAncestors(
  1. dynamic callback
)

Implementation

void traverseAncestors(callback) {
  var parent = this.parent;

  if (parent != null) {
    callback(parent);

    parent.traverseAncestors(callback);
  }
}