root property

Context get root

Implementation

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