traverseAncestors method
void
traverseAncestors(
- dynamic callback
Implementation
void traverseAncestors(callback) {
var parent = this.parent;
if (parent != null) {
callback(parent);
parent.traverseAncestors(callback);
}
}