onAttach method

  1. @mustCallSuper
void onAttach()

Implementation

@mustCallSuper
void onAttach() {
  if (this is KeyboardEvents) {
    RawKeyboard.instance.addListener(_handleKeyEvent);
  }
}