EventStreamProvider<T extends Event> class

A factory to expose DOM events as Streams.

A factory to expose DOM events as Streams.

Constructors

EventStreamProvider ( String _eventType )
const

Instance Methods

forTarget ( EventTarget e, {bool useCapture: false} ) → Stream<T>
Gets a Stream for this event type, on the specified target.
forElement ( Element e, {bool useCapture: false} ) → ElementStream<T>
Gets an ElementEventStream for this event type, on the specified element.
getEventType ( EventTarget target ) → String
Gets the type of the event which this would listen for on the specified event target.