onChangedTo method Null safety

  1. @override
void onChangedTo()
override

Called by the controller when this state is changed to

Implementation

@override
void onChangedTo() {
  if (program.currentLine == 0 && program.lines > 0) {
    final spr = _fake.real.suspendedProgramRunner;
    if (spr?.runImplicitRtnOnSST != true) {
      program.currentLine = 1;
      stackLiftEnabled = true;
      changeState(Resting(_fake));
    }
  }
  program.displayCurrent();
  model.displayDisabled = true;
}