index method

int index()

Implementation

int index() {
  return parent!.children.indexOf(this);
}