cycle method
void
cycle()
Cycles through all debug modes in order: none -> all -> spatialIndex -> autoPanZone -> none
Implementation
void cycle() {
runInAction(() {
final modes = DebugMode.values;
final currentIndex = modes.indexOf(_mode.value);
final nextIndex = (currentIndex + 1) % modes.length;
_mode.value = modes[nextIndex];
});
}