localToGlobal method Null safety

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

Convert the given point from the local coordinate space to the global one.

For definitions for coordinate spaces, see TestWidgetsFlutterBinding.

Implementation

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