PointerTracker constructor

const PointerTracker({
  1. Key? key,
  2. required bool disabled,
  3. required Scalar scalar,
  4. required Widget child,
  5. required PointerCallback onPositionChange,
  6. bool useRelativePosition = true,
})

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);