globalToLocal method

Offset globalToLocal(
  1. Offset point,
  2. RenderView view

Convert the given point from the global coordinate space of the provided RenderView to its local one.

This method operates in logical pixels for both coordinate spaces. It does not apply the device pixel ratio (used to translate to/from physical pixels).

For definitions for coordinate spaces, see TestWidgetsFlutterBinding.


Offset globalToLocal(Offset point, RenderView view) => point;