children property

List<List<Widget>> children
final

The widgets to display.

Also, a Widget in Flutter is immutable, so directly modifying the children such as someWidget.children.add(...) or passing a reference of the original list value to the children parameter will result in incorrect behaviors. Whenever the children list is modified, a new list object must be provided.

The children are accessed for each ChildVicinity.yIndex and ChildVicinity.xIndex of the TwoDimensionalViewport as children[vicinity.yIndex][vicinity.xIndex].

Implementation

final List<List<Widget>> children;