toggleRotation method
void
toggleRotation()
Toggles the rotation of the globe.
Example usage:
FlutterEarthGlobeController controller = FlutterEarthGlobeController();
controller.toggleRotation();
Implementation
void toggleRotation() {
_isRotating = !_isRotating;
if (_isRotating) {
rotationController.forward();
} else {
rotationController.stop();
}
notifyListeners();
}