getChildOffset method

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

Returns the child offset for the given position.

Implementation

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