msPerInstruction property Null safety

double msPerInstruction

How long do we want an instruction to take when running a program? Note that number keys run about 5x faster than this.

Implementation

double get msPerInstruction => _msPerInstruction ?? _msPerInstructionDefault;
void msPerInstruction=(double? msPerInstruction)

Implementation

set msPerInstruction(double? msPerInstruction) {
  if (msPerInstruction == _msPerInstructionDefault) {
    msPerInstruction = null;
  }
  _msPerInstruction = msPerInstruction;
  _model.needsSave = true;
}