cycleDebugMode method
void
cycleDebugMode()
Cycle through all debug modes in order: none → all → spatialIndex → autoPanZone → none
Implementation
void cycleDebugMode() {
runInAction(() {
final modes = DebugMode.values;
final currentIndex = modes.indexOf(debugMode.value);
final nextIndex = (currentIndex + 1) % modes.length;
debugMode.value = modes[nextIndex];
});
}