isRoot property

bool get isRoot

Returns true, if this node is root.

Implementation

bool get isRoot => parent == null;