traverseAncestors method

void traverseAncestors(
  1. dynamic callback
)
inherited

Implementation

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

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

    parent.traverseAncestors(callback);
  }
}