applyLayoutTransform method

void applyLayoutTransform(
  1. RenderObject child,
  2. Matrix4 transform,
  3. bool excludeScrollOffset
)

Implementation

void applyLayoutTransform(RenderObject child, Matrix4 transform, bool excludeScrollOffset) {
  assert(child.parent == this);
  assert(child.parentData is BoxParentData);
  final BoxParentData childParentData = child.parentData! as BoxParentData;
  Offset offset = childParentData.offset;
  if (excludeScrollOffset) {
    offset -= Offset(scrollLeft, scrollTop);
  }
  transform.translate(offset.dx, offset.dy);
}