RxStreamBuilder<T> constructor
const
RxStreamBuilder<T> ({
- Key? key,
- required ValueStream<
T> stream, - required RxWidgetBuilder<
T> builder,
Creates a new RxStreamBuilder that builds itself based on the latest
snapshot of interaction with the specified stream
and whose build
strategy is given by builder
.
The initialData
is used to create the initial snapshot.
See StreamBuilder.initialData.
The builder
must not be null. It must only return a widget and should not have any side
effects as it may be called multiple times.
Implementation
const RxStreamBuilder({
Key? key,
required ValueStream<T> stream,
required RxWidgetBuilder<T> builder,
}) : _builder = builder,
_stream = stream,
super(key: key);