1. override
Point globalToLocal(Point point)

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

Source

@override
Point globalToLocal(Point point) {
  Matrix4 transform = renderView.configuration.toHitTestMatrix();
  double det = transform.invert();
  assert(det != 0.0);
  Point result = MatrixUtils.transformPoint(transform, point);
  return result;
}