getPositionForChild method
size — the layout box size (= the screen, see class doc);
childSize — the tooltip's actual size after layout.
Implementation
@override
Offset getPositionForChild(Size size, Size childSize) {
assert(
size.width == screenLocal.width && size.height == screenLocal.height,
'layout box must be the screen (screenLocal.size == box size)',
);
return placeTooltip(
screen: screenLocal,
hole: holeLocal,
position: position,
size: childSize,
safeArea: safeArea,
avoid: [holeLocal, ...extraHoles],
gap: gap,
);
}