AutoPanOnDragOptions class
Options for auto-panning the map when dragging near edges.
Constructors
- AutoPanOnDragOptions({bool enabled = true, EdgeInsets safePadding = const EdgeInsets.all(16), double minStepPx = 6.0, double maxStepPx = 36.0, double gain = 0.25, bool animated = true, Duration animationDuration = const Duration(milliseconds: 250)})
-
const
Properties
- animated → bool
-
Whether to animate pan movements.
final
- animationDuration → Duration
-
Duration of pan animation.
final
- enabled → bool
-
Whether auto-pan is enabled.
final
- gain → double
-
Pan speed gain factor.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- maxStepPx → double
-
Maximum pan step in pixels.
final
- minStepPx → double
-
Minimum pan step in pixels.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- safePadding → EdgeInsets
-
Safe padding from edges before auto-pan activates.
final
Methods
-
copyWith(
{bool? enabled, EdgeInsets? safePadding, double? minStepPx, double? maxStepPx, double? gain, bool? animated, Duration? animationDuration}) → AutoPanOnDragOptions -
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.
override