A factory to expose DOM events as Streams.

Constructors

EventStreamProvider(String _eventType)
const

Methods

forElement(Element e, {bool useCapture: false}) → ElementStream<T>

Gets an ElementEventStream for this event type, on the specified element.

forTarget(EventTarget e, {bool useCapture: false}) → Stream<T>

Gets a Stream for this event type, on the specified target.

getEventType(EventTarget target) → String

Gets the type of the event which this would listen for on the specified event target.