indexInParent property

int get indexInParent

Returns the index position of this node in the parent.

Implementation

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