dispose static method

void dispose()

Disposes of the GKeyboard utility class.

This method removes the keyboard event listeners from the current Stage.

Implementation

static void dispose() {
  _stage?.keyboard?.onDown.remove(_onKey);
  _stage?.keyboard?.onUp.remove(_onKey);
}