API Reference 0.7.1rikulo_eventViewEventStreamProvider<T>

ViewEventStreamProvider<T extends ViewEvent> class

A factory to expose View's events as Streams.

class ViewEventStreamProvider<T extends ViewEvent> extends StreamProvider<T> {
 const ViewEventStreamProvider(String eventType): super(eventType);
}

Extends

StreamProvider<T> > ViewEventStreamProvider<T>

Constructors

const ViewEventStreamProvider(String eventType) #

Creates a new Object instance.

Object instances have no meaningful state, and are only useful through their identity. An Object instance is equal to itself only.

docs inherited from Object
const ViewEventStreamProvider(String eventType): super(eventType);

Methods

Stream<T> forTarget(StreamTarget target) #

inherited from StreamProvider

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

Stream<T> forTarget(StreamTarget target) {
 return new _Stream(target, _type);
}