API Reference 0.7.1rikulo_modelDataEventStreamProvider<T>

DataEventStreamProvider<T extends DataEvent> class

A factory to expose DataModel's events as Streams.

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

Extends

StreamProvider<T> > DataEventStreamProvider<T>

Constructors

const DataEventStreamProvider(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 DataEventStreamProvider(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);
}