localToGlobal method

  1. @override
Offset localToGlobal (
  1. Offset point
)
override

Convert the given point from the coordinate system used by the tests (an 800 by 600 window) to the global coordinate system (as used by pointer events from the device).

Implementation

@override
Offset localToGlobal(Offset point) {
  final Matrix4 transform = renderView.configuration.toHitTestMatrix();
  return MatrixUtils.transformPoint(transform, point);
}