moveChild method

void moveChild(
  1. RenderNode? node,
  2. int index
)

Implementation

void moveChild(RenderNode? node, int index) {
  if (node != null) {
    _notifyManageChildren = true;
    if (_children.contains(node)) {
      _children.remove(node);
      _children.insert(index, node);
    }
  }
}