buttonDown method Null safety

  1. @override
void buttonDown(
  1. Operation key
)
override

Implementation

@override
void buttonDown(Operation key) {
  if (key == Operations.onOff) {
    model.display.displayX();
    changeState(Resting(controller));
  }
}