localToGlobal method Null safety

  1. @override
Offset localToGlobal (
  1. Offset point

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).


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