indexInParent property

int? get indexInParent

The index of this node within the parent's list of semantic children.

This includes all semantic nodes, not just those currently in the child list. For example, if a scrollable has five children but the first two are not visible (and thus not included in the list of children), then the index of the last node will still be 4.

Implementation

int? get indexInParent => _indexInParent;
set indexInParent (int? value)

Implementation

set indexInParent(int? value) {
  _indexInParent = value;
  _hasBeenAnnotated = true;
}