computeStonePositions abstract method Null safety

Map<Stone, StoneStartPosition> computeStonePositions(
  1. List<Stone> stones

Let you compute stone position for each stone. StonePositions must not overlap (stack not allowed), and not been drawn outside the wall (depending on WallBuilder.mainAxisSeparations).

To help you, the WallBuilder will check these two requisites. Added to that, you have access to layout main data:


Map<Stone, StoneStartPosition> computeStonePositions(List<Stone> stones);