rotateStackDown method Null safety

void rotateStackDown()

the R key

Implementation

void rotateStackDown() {
  void f(final List<Value>? st) {
    if (st != null) {
      Value t = st[0];
      st[0] = st[1];
      st[1] = st[2];
      st[2] = st[3];
      st[3] = t;
    }
  }

  f(_stack);
  f(_imaginaryStack);
  display.window = 0;
  needsSave = true;
  _clxDone = false;
}