reset method Null safety
Reset the calculator to its default state.
Implementation
void reset() {
settings._reset();
for (int i = 0; i < _stack.length; i++) {
_stack[i] = Value.zero;
}
_lastX = Value.zero;
for (int i = 0; i < _flags.length; i++) {
_flags[i] = false;
}
memory.reset();
display.window = 0;
prgmFlag = false;
needsSave = true;
display.displayX(flash: false);
}