reactive_component library

Supports for creating stream-based reactive components, designed for simplicity, composability, flexibility.

Classes

Reactive<D>
A special kind of StreamController that holds its latest stream data, and sends that as the first data to any new listener. [...]
ReactiveEventSink<T>
A ReactiveSink that implements EventSink.
ReactiveSink<T>
A special kind of Sink with its own single stream listener that handles the event data. [...]
ReactiveStreamSink<T>
A ReactiveSink that implements StreamSink.
VoidReactiveEventSink
A VoidReactiveSink that implements EventSink.
VoidReactiveSink
ReactiveSink of void type.
VoidReactiveStreamSink
A VoidReactiveSink that implements StreamSink.

Mixins

ReactiveComponent
A mixin that represents ReactiveComponent. [...]
ReactiveOutputComponent
ReactiveOutputComponent [...]
ReactiveResource
A mixin that handles resource disposing with only Sink and Stream public interface. [...]

Constants

streamIO → const _StreamIO
The annotation @streamIO marks all public instance members' return type in the class must be a kind of Stream or Sink. [...]
const _StreamIO()
streamOutput → const _StreamOutput
The annotation @streamOutput marks all public instance members' return type in the class must be a kind of Stream or FutureOr<void>. [...]
const _StreamOutput()

Typedefs

FutureOrVoidCallback() FutureOr<void>
HandleSubscription<T>(StreamSubscription<T> subscription) → void
OnData<T>(T data) → void
OnError(Object error, StackTrace stackTrace) → void
Transform<T>(Stream<T> stream) Stream<T>