isRoot property

bool get isRoot

Whether its a root node in the hierarchy.

Implementation

bool get isRoot {
  return _parent == null;
}