To achieve the same thing with Streams, here's an example:
Element.keyUpEvent.forTarget(document.body, useCapture: true).listen((e) {
// Do your stuff.
print('Here we go');
});
The method we used above, creates a stream for you with capture mode. The Stream interface (listen()
method) is quite generic, and thus can't have this specific functionality you are looking for.