root property

Scope root

Implementation

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