getTheWidgetLocalToGlobal static method

Offset? getTheWidgetLocalToGlobal(
  1. BuildContext context
)

Implementation

static Offset? getTheWidgetLocalToGlobal(BuildContext context) {
  final box = context.findRenderObject() as RenderBox?;
  return (box != null) ? box.localToGlobal(Offset.zero) : null;
}