isRoot property

bool get isRoot

Whether this node is a root.

Implementation

bool get isRoot {
  return parentKey == null;
}