StreamBuilder<T> constructor
const
StreamBuilder<T> ({
- Key? key,
- Stream<
T> ? stream, - T? initialData,
- required Widget builder(
- BuildContext context,
- AsyncSnapshot<
T> snapshot
Creates a new StreamBuilder that builds itself based on the latest
snapshot of interaction with the specified stream and whose build
strategy is given by builder.
Implementation
const StreamBuilder({
super.key,
this.stream,
this.initialData,
required this.builder,
});