getChildAt method

  1. @override
DisplayObject getChildAt(
  1. int index
)
override

Returns the child DisplayObject at the specified index.

Implementation

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