handleBackspace method Null safety

  1. @override
void handleBackspace()
override

Implementation

@override
void handleBackspace() {
  if (program.currentLine > 0) {
    program.deleteCurrent();
  }
  program.displayCurrent();
}