buttonDown method Null safety

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

Implementation

@override
void buttonDown(Operation key) {
  if (key.endsDigitEntry) {
    model.x = model.x; // Clear CLX status
    changeState(Resting(controller)).buttonDown(key);
  } else {
    key.pressed(this);
  }
}