GesturesSettings class

Gesture configuration allows to control the user touch interaction.

Constructors

GesturesSettings({bool? rotateEnabled, bool? pinchToZoomEnabled, bool? scrollEnabled, bool? simultaneousRotateAndPinchToZoomEnabled, bool? pitchEnabled, ScrollMode? scrollMode, bool? doubleTapToZoomInEnabled, bool? doubleTouchToZoomOutEnabled, bool? quickZoomEnabled, ScreenCoordinate? focalPoint, bool? pinchToZoomDecelerationEnabled, bool? rotateDecelerationEnabled, bool? scrollDecelerationEnabled, bool? increaseRotateThresholdWhenPinchingToZoom, bool? increasePinchToZoomThresholdWhenRotating, double? zoomAnimationAmount, bool? pinchPanEnabled})

Properties

doubleTapToZoomInEnabled bool?
Whether double tapping the map with one touch results in a zoom-in animation. Default value: true.
getter/setter pair
doubleTouchToZoomOutEnabled bool?
Whether single tapping the map with two touches results in a zoom-out animation. Default value: true.
getter/setter pair
focalPoint ScreenCoordinate?
By default, gestures rotate and zoom around the center of the gesture. Set this property to rotate and zoom around a fixed point instead.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
increasePinchToZoomThresholdWhenRotating bool?
Whether pinch to zoom threshold increases when rotating. true by default. Default value: true.
getter/setter pair
increaseRotateThresholdWhenPinchingToZoom bool?
Whether rotate threshold increases when pinching to zoom. true by default. Default value: true.
getter/setter pair
pinchPanEnabled bool?
Whether pan is enabled for the pinch gesture. Default value: true.
getter/setter pair
pinchToZoomDecelerationEnabled bool?
Whether a deceleration animation following a pinch-to-zoom gesture is enabled. True by default. Default value: true.
getter/setter pair
pinchToZoomEnabled bool?
Whether the pinch to zoom gesture is enabled. Default value: true.
getter/setter pair
pitchEnabled bool?
Whether the pitch gesture is enabled. Default value: true.
getter/setter pair
quickZoomEnabled bool?
Whether the quick zoom gesture is enabled. Default value: true.
getter/setter pair
rotateDecelerationEnabled bool?
Whether a deceleration animation following a rotate gesture is enabled. True by default. Default value: true.
getter/setter pair
rotateEnabled bool?
Whether the rotate gesture is enabled. Default value: true.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollDecelerationEnabled bool?
Whether a deceleration animation following a scroll gesture is enabled. True by default. Default value: true.
getter/setter pair
scrollEnabled bool?
Whether the single-touch scroll gesture is enabled. Default value: true.
getter/setter pair
scrollMode ScrollMode?
Configures the directions in which the map is allowed to move during a scroll gesture. Default value: "horizontal-and-vertical".
getter/setter pair
simultaneousRotateAndPinchToZoomEnabled bool?
Whether rotation is enabled for the pinch to zoom gesture. Default value: true.
getter/setter pair
zoomAnimationAmount double?
The amount by which the zoom level increases or decreases during a double-tap-to-zoom-in or double-touch-to-zoom-out gesture. 1.0 by default. Must be positive. Default value: 1.
getter/setter pair

Methods

encode() Object
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 Methods

decode(Object result) GesturesSettings