globalToLocal method Null safety
- Offset point
override
Convert the given point from the global coordinate space to the local one.
For definitions for coordinate spaces, see TestWidgetsFlutterBinding.
Implementation
@override
Offset globalToLocal(Offset point) {
final Matrix4 transform = _liveTestRenderView.configuration.toHitTestMatrix();
final double det = transform.invert();
assert(det != 0.0);
final Offset result = MatrixUtils.transformPoint(transform, point);
return result;
}