getOffset static method
Implementation
static Offset? getOffset(BuildContext? context) {
RenderObject? box = context?.findRenderObject();
if (box is RenderBox) {
return box.localToGlobal(Offset.zero);
}
return null;
}
static Offset? getOffset(BuildContext? context) {
RenderObject? box = context?.findRenderObject();
if (box is RenderBox) {
return box.localToGlobal(Offset.zero);
}
return null;
}