getChildOffsetForIteration method

Offset getChildOffsetForIteration(
  1. int iteration,
  2. ScatterContext context
)

Returns the child offset for the given iteration.

For a given iteration, the position should be unique.

Implementation

Offset getChildOffsetForIteration(int iteration, ScatterContext context) {
  final Offset position = getPositionForIteration(iteration, context);
  return getChildOffset(position, context);
}