isRoot property

bool get isRoot

Whether or not this node is the root.

Implementation

bool get isRoot => parent == null;