indexOf method

int indexOf (RenderBox child)

Gets the index of a child by looking at its parentData.

Implementation

int indexOf(RenderBox child) {
  assert(child != null);
  final ListWheelParentData childParentData = child.parentData;
  assert(childParentData.index != null);
  return childParentData.index;
}