root property

WidgetTreeSnapshot root

The root of the widget tree

Implementation

WidgetTreeSnapshot get root {
  if (parentScope == null) {
    return this as WidgetTreeSnapshot;
  }
  return parentScope!.root;
}