addChild<T extends GDisplayObject> method

T addChild<T extends GDisplayObject>(
  1. T child
)

Adds a child to the end of the list of children of this container.

The type parameter T specifies the type of the child to add.

Implementation

T addChild<T extends GDisplayObject>(T child) {
  return addChildAt(child, children.length);
}