InteractionOptions constructor
const
InteractionOptions({
- int flags = InteractiveFlag.all,
- bool debugMultiFingerGestureWinner = false,
- bool enableMultiFingerGestureRace = false,
- double rotationThreshold = 20.0,
- int rotationWinGestures = MultiFingerGesture.rotate,
- double pinchZoomThreshold = 0.5,
- int pinchZoomWinGestures = MultiFingerGesture.pinchZoom | MultiFingerGesture.pinchMove,
- double pinchMoveThreshold = 40.0,
- int pinchMoveWinGestures = MultiFingerGesture.pinchZoom | MultiFingerGesture.pinchMove,
- double scrollWheelVelocity = 0.005,
- CursorKeyboardRotationOptions cursorKeyboardRotationOptions = const CursorKeyboardRotationOptions(),
Create a new InteractionOptions instance to be used in MapOptions.interactionOptions.
Implementation
const InteractionOptions({
this.flags = InteractiveFlag.all,
this.debugMultiFingerGestureWinner = false,
this.enableMultiFingerGestureRace = false,
this.rotationThreshold = 20.0,
this.rotationWinGestures = MultiFingerGesture.rotate,
this.pinchZoomThreshold = 0.5,
this.pinchZoomWinGestures =
MultiFingerGesture.pinchZoom | MultiFingerGesture.pinchMove,
this.pinchMoveThreshold = 40.0,
this.pinchMoveWinGestures =
MultiFingerGesture.pinchZoom | MultiFingerGesture.pinchMove,
this.scrollWheelVelocity = 0.005,
this.cursorKeyboardRotationOptions = const CursorKeyboardRotationOptions(),
}) : assert(
rotationThreshold >= 0.0,
'rotationThreshold needs to be a positive value',
),
assert(
pinchZoomThreshold >= 0.0,
'pinchZoomThreshold needs to be a positive value',
),
assert(
pinchMoveThreshold >= 0.0,
'pinchMoveThreshold needs to be a positive value',
);