globalOffsetToLocal static method
Implementation
static Offset? globalOffsetToLocal(GlobalKey key, Offset offsetGlobal) {
RenderBox renderObject =
key.currentContext?.findRenderObject() as RenderBox;
if (renderObject == null) {
return null;
}
return renderObject.globalToLocal(offsetGlobal);
}