indexInParent property

  1. @override
int get indexInParent
override

Implementation

@override
int get indexInParent {
  var parent = node!.parent;
  if (parent == null) return -1;
  return parent.nodes.indexOf(node!);
}