CursorKeyboardRotationOptions class
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).
- Annotations
Constructors
- CursorKeyboardRotationOptions({IsKeyCursorRotationTrigger? isKeyTrigger, CursorRotationBehaviour behaviour = CursorRotationBehaviour.offset, bool setNorthOnClick = true})
-
Create options to configure cursor/keyboard rotation
const
- CursorKeyboardRotationOptions.disabled()
- Create options to disable cursor/keyboard rotation
Properties
- behaviour → CursorRotationBehaviour
-
The behaviour of the cursor/keyboard rotation function in terms of the
angle that the map is rotated to
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isKeyTrigger → IsKeyCursorRotationTrigger?
-
Whether to trigger cursor/keyboard rotation dependent on the currently
pressed LogicalKeyboardKey
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- setNorthOnClick → bool
-
Whether to set the North of the map to the clicked angle, when the user
clicks their mouse without dragging (a
onPointerDown
event followed byonPointerUp
without a change in rotation)final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
defaultTriggerKeys
→ Set<
LogicalKeyboardKey> -
Default trigger keys used in the default isKeyTrigger
final