add method

int add({
  1. required KeyboardListener listener,
})

Subscribe to a keyboard event. listener object to listen the event. Returns a subscribing id that can be used to unsubscribe.

Implementation

int add({required KeyboardListener listener}) {
  _listenersKeyboardEvents[_count] = listener;
  return _count++;
}