hasId property Null safety

bool hasId

Checks if this node has an ID, otherwise it is a root node

Implementation

bool get hasId => (id != -1);