handleGotoDot method Null safety

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

Implementation

@override
void handleGotoDot(int value) {
  try {
    program.currentLine = value;
    program.displayCurrent();
  } on CalculatorError catch (e) {
    controller.showCalculatorError(e);
  }
}