getChildAt method

  1. @override
DisplayObject getChildAt (int index)
override

Returns the child DisplayObject at the specified index.

Implementation

@override
DisplayObject getChildAt(int index) {
  if (index < 0 || index >= _children.length) {
    throw new ArgumentError("The supplied index is out of bounds.");
  } else {
    return _children[index];
  }
}