createChild abstract method

void createChild(
  1. int index,
  2. {required RenderBox? after}
)

Creates a new child at the given index and updates it to the child list of RenderListWheelViewport. If no child corresponds to index, then do nothing.

It is possible to create children with negative indices.

Implementation

void createChild(int index, { required RenderBox? after });