addChild abstract method

void addChild(
  1. FocusNode? parent,
  2. FocusNode child
)

Add a child node to the hierarchy. If parent is null, the child is added as a root node.

Implementation

void addChild(FocusNode? parent, FocusNode child);