root property

Context get root

Get the initial context node from the context tree.

Implementation

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