touchHandlerExitAllow property
bool
get
touchHandlerExitAllow
Whether user gestures can exit follow position mode
When true (default), user interactions like panning or tilting the map will exit follow position mode. When false, the follow mode can only be exited programmatically via GemMapController.stopFollowingPosition.
Returns
- True if user gestures can exit follow position, false otherwise (default: true)
Implementation
bool get touchHandlerExitAllow {
final OperationResult resultString = objectMethod(
pointerId,
'FollowPositionPreferences',
'getTouchHandlerExitAllow',
dependencyId: _mapPointerId,
);
return resultString['result'];
}
set
touchHandlerExitAllow
(bool allowExit)
Control whether user gestures can exit follow position mode
When enabled (default), user interactions like panning or tilting exit follow mode. When disabled, follow mode can only be exited programmatically.
Parameters
allowExit: True to allow user gestures to exit follow mode, false to require programmatic exit. Default: true
Implementation
set touchHandlerExitAllow(final bool allowExit) {
objectMethod(
pointerId,
'FollowPositionPreferences',
'setTouchHandlerExitAllow',
args: allowExit,
dependencyId: _mapPointerId,
);
}