GlobeInteractionConfig class

Configuration for touch, pointer, and gesture interaction.

Annotations

Constructors

GlobeInteractionConfig({bool dragEnabled = true, bool zoomEnabled = false, bool inertiaEnabled = true, double inertiaFriction = 0.93, double rotationSensitivity = 0.005, bool invertVerticalPan = false, bool autoRotate = true, double autoRotateSpeed = 0.85, bool pauseOnTouch = true})
Creates gesture and idle-rotation behavior for the globe widget.
const

Properties

autoRotate bool
Whether the camera rotates automatically while idle.
final
autoRotateSpeed double
Idle rotation speed in radians per second.
final
dragEnabled bool
Whether drag gestures rotate the globe.
final
hashCode int
The hash code for this object.
no setterinherited
inertiaEnabled bool
Whether a fast drag continues with decaying momentum.
final
inertiaFriction double
Per-frame momentum multiplier; lower values stop sooner.
final
invertVerticalPan bool
Whether vertical drag direction is inverted.
final
pauseOnTouch bool
Whether pointer interaction pauses idle rotation.
final
rotationSensitivity double
Radians applied per logical pixel of drag.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
zoomEnabled bool
Whether pinch and pointer-scale gestures change zoom.
final

Methods

copyWith({bool? dragEnabled, bool? zoomEnabled, bool? inertiaEnabled, double? inertiaFriction, double? rotationSensitivity, bool? invertVerticalPan, bool? autoRotate, double? autoRotateSpeed, bool? pauseOnTouch}) GlobeInteractionConfig
Copies these tokens, retaining any field whose argument is omitted.
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

lerp(GlobeInteractionConfig a, GlobeInteractionConfig b, double t) GlobeInteractionConfig
Linearly interpolates between two GlobeInteractionConfig instances.