resetAll method Null safety

void resetAll()

Implementation

void resetAll() {
  reset();
  state.abort();
  state = Resting(this);
  model.displayDisabled = false;
  model.display.displayX();
}