Future clockToggle(int id) { if (id < clocks.length) return clocks[id].running ? clockStop(id) : clockStart(id); return Future.value(false); }