root property

Scope get root

Implementation

Scope get root {
  var found = this;
  while (found.parent != null) {
    found = found.parent!;
  }
  return found;
}