keyReleased method Null safety

void keyReleased()

When the button is released with an accelerator key

Implementation

void keyReleased() {
  setState(() {
    _pressed = false;
    _pressedFromKeyboard = false;
  });
  factory.controller.buttonUp();
}