checkStartRunning method Null safety

  1. @override
  2. @mustCallSuper
void checkStartRunning()

Called from startRunningProgram in order to see if it's OK to start running. Throws CalculatorError if not. This is called as part of a solve or integrate operation that is executed in a program. Not called when solve/integrate is entered from the keyboard.


void checkStartRunning() {
  final p = caller.model.memory as Memory15;
  if (p.availableRegistersWithProgram(this) < 0) {
    throw CalculatorError(10);