onKeyPress method Null safety

CustomStream<KeyEvent> onKeyPress (
  1. EventTarget target
)

Named constructor to produce a stream for onKeyPress events.

Implementation

static CustomStream<KeyEvent> onKeyPress(EventTarget target) =>
    new _KeyboardEventHandler('keypress').forTarget(target);