useRelativePosition property

bool useRelativePosition
final

Whether to track movement relative to initial touch position.

When true, movements are reported relative to where the pointer first contacted the widget, making (0,0) the initial touch point. When false, positions are reported relative to the widget's bounds, with (0,0) being the center of the widget.

Implementation

final bool useRelativePosition;