getOffsetToAncestor method

Offset getOffsetToAncestor(
  1. Offset point,
  2. RenderObject ancestor, {
  3. bool excludeScrollOffset = false,
})

Implementation

Offset getOffsetToAncestor(Offset point, RenderObject ancestor, {bool excludeScrollOffset = false}) {
  return getLayoutTransformTo(this, ancestor, excludeScrollOffset: excludeScrollOffset) + point;
}