handleGotoDot method Null safety

  1. @override
void handleGotoDot(
  1. int value
)
override

Implementation

@override
void handleGotoDot(int value) {
  try {
    model.memory.program.currentLine = value;
    model.display.displayX();
  } on CalculatorError catch (e, s) {
    controller.showCalculatorError(e, s);
  }
}