addToParent method

FutureOr<void> addToParent(
  1. Component parent
)

Adds this component as a child of parent (see add for details).

Implementation

FutureOr<void> addToParent(Component parent) => parent._addChild(this);