toHitTestMatrix method Null safety

Matrix4 toHitTestMatrix()

Provides the transformation matrix that converts coordinates in the test coordinate space to coordinates in logical pixels on the real display.

This is essentially the same as toMatrix but ignoring the device pixel ratio.

This is useful because pointers are described in logical pixels, as opposed to graphics which are expressed in physical pixels.


Matrix4 toHitTestMatrix() => _hitTestMatrix.clone();