resetAll method Null safety

void resetAll()

Implementation

void resetAll() {
  reset();
  state = Resting(this);
  model.isRunningProgram = false;
}