CursorKeyboardRotationOptions constructor
const
CursorKeyboardRotationOptions({
- IsKeyCursorRotationTrigger? isKeyTrigger,
- CursorRotationBehaviour behaviour = CursorRotationBehaviour.offset,
- bool setNorthOnClick = true,
Create options to configure cursor/keyboard rotation
Cursor/keyboard rotation is designed for desktop platforms, and allows the cursor to be used to set the rotation of the map whilst a keyboard key is held down (as triggered by isKeyTrigger).
To disable cursor/keyboard rotation, fix isKeyTrigger to return false
,
or use the CursorKeyboardRotationOptions.disabled constructor instead.
This constructor defaults to setting isKeyTrigger to triggering if any key in defaultTriggerKeys is held (any of the "Control" keys).
Implementation
const CursorKeyboardRotationOptions({
this.isKeyTrigger,
this.behaviour = CursorRotationBehaviour.offset,
this.setNorthOnClick = true,
});