id property

int get id

Stable native-subtree identity. Reused subtrees retain this value across incrementally produced trees, matching Node::id.

Implementation

int get id {
  if (isNull) return 0;
  return _nativeIds[_nativeIdentity] ??= _nextNativeId++;
}