handleOnOff method Null safety

  1. @override
void handleOnOff()
override

Implementation

@override
void handleOnOff() {
  model.onIsPressed.value = true;
  model.display.current = '0ff?   ';
  model.display.update();
  stackLiftEnabled = true;
  changeState(OnOffKeyPressed(controller));
}