parentIndex property

int get parentIndex

Implementation

int get parentIndex => parent == null ? -1 : parent!.children.indexOf(this);