setModeIndex method

void setModeIndex(
  1. int index
)

Same as setMode, but uses OperatingMode.index instead.

Implementation

void setModeIndex(int index) => setMode(OperatingMode.values[index]);