DataStreamBuilder<T> constructor

DataStreamBuilder<T>({
  1. Key? key,
  2. required DataStream<T> stream,
  3. required DataWidgetBuilder<T> builder,
})

Widget that builds itself based on the latest value a DataStream.

Implementation

DataStreamBuilder({
  super.key,
  required DataStream<T> stream,
  required this.builder,
}) : initialData = stream.value, super(stream: stream.innerStream);