isAlwaysRoot property

bool isAlwaysRoot

Returns true if this node was created with Node.root (can't have inputs).

Implementation

bool get isAlwaysRoot =>
    _shortestPathToRoot is UnmodifiableListView && _inputs.isEmpty;