transformed method Null safety

PointerEvent transformed (
  1. Matrix4? transform

Transforms the event from the global coordinate space into the coordinate space of an event receiver.

The coordinate space of the event receiver is described by transform. A null value for transform is treated as the identity transformation.

The method may return the same object instance if for example the transformation has no effect on the event.

Transforms are not commutative. If this method is called on a PointerEvent that has a non-null transform value, that value will be overridden by the provided transform.


PointerEvent transformed(Matrix4? transform);