ChildVicinity constructor

const ChildVicinity({
  1. required int xIndex,
  2. required int yIndex,
})

Creates a reference to a child in a two dimensional plane, with the xIndex and yIndex being relative to other children in the viewport.

Implementation

const ChildVicinity({
  required this.xIndex,
  required this.yIndex,
}) : assert(xIndex >= -1),
     assert(yIndex >= -1);