PointerTracker constructor
const
PointerTracker({})
Creates a PointerTracker widget.
The disabled parameter controls whether pointer tracking is active.
The scalar parameter adjusts the sensitivity of the tracking.
The onPositionChange callback is called whenever the pointer position changes.
The useRelativePosition parameter determines whether tracking should be
relative to the initial pointer position or absolute within the widget bounds.
Implementation
const PointerTracker({
Key? key,
required this.disabled,
required this.scalar,
required this.child,
required this.onPositionChange,
this.useRelativePosition = true,
}) : super(key: key);