getChildOffset method

  1. @protected
Offset getChildOffset(
  1. Offset position,
  2. ScatterContext context
)

Returns the child offset for the given position.

Implementation

@protected
Offset getChildOffset(Offset position, ScatterContext context) {
  return position - context.alignment.alongSize(context.childSize);
}