EarthController class

Controls globe rotation, zoom and physics (inertia / auto-rotation).

Create an EarthController and pass it to Flutter3DGlobe to control the globe programmatically or receive updates from user interactions.

Inheritance

Constructors

EarthController({EarthConfig config = const EarthConfig(), bool autoRotate = true})

Properties

autoRotate bool
Whether the globe auto-rotates when idle. Toggle this to enable/disable automatic rotation driven by the physics ticker.
getter/setter pair
config EarthConfig
Configuration values that control bounds and sensitivity.
final
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
rotationX double
no setter
rotationY double
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
zoom double
getter/setter pair

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
dispose() → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed).
inherited
getMatrix33() Float32List
getRotationMatrix() Matrix4
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
onDragEnd(Offset velocity, double pixelRatio) → void
onDragStart() → void
onDragUpdate(double dx, double dy, double sensitivity) → void
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
startPhysics(TickerProvider vsync) → void
stopPhysics() → void
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited