PointTransformer typedef Null safety

Offset PointTransformer (
  1. Offset position
)

Converts a given point from the global coordinate system in logical pixels to the local coordinate system for a box.

Used by AndroidViewController.pointTransformer.

Implementation

typedef PointTransformer = Offset Function(Offset position);