SceneViewPointerSampleCallback typedef

SceneViewPointerSampleCallback = void Function(SceneController controller, PointerSample sample)

Callback invoked by SceneView for each pointer sample it processes.

Notes:

  • PointerSample.position is in view/screen coordinates (as received from PointerEvent.localPosition).
  • Keep callbacks fast and side-effect free where possible; they run on the UI thread.
  • Callbacks cannot cancel the default controller handling. Use them to observe or to apply app-level logic (e.g., expand selection, snap on drop).

Implementation

typedef SceneViewPointerSampleCallback =
    void Function(SceneController controller, PointerSample sample);