indexInParent property

int indexInParent

Returns the index position of this node in the parent.

Implementation

int get indexInParent {
  if (parent == null) return -1;
  return parent!.indexOfNode(this);
}