buttonDown method Null safety

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

Implementation

@override
void buttonDown(Operation key) {
  if (getCalculation(key) != null || key.arg != null) {
    changeState(Resting(controller)).buttonDown(key);
  } else {
    key.pressed(this);
  }
}