QueryListener<T> constructor
const
QueryListener<T> ({
- Key? key,
- required Stream<
T> stream, - required T initialData,
- required Widget builder(
- BuildContext context,
- T data
Creates a QueryListener widget.
key is optional and can be used to control widget identity.
stream is the required data stream to listen to.
initialData is the required initial value to display.
builder is the required function to build the widget's child.
Implementation
const QueryListener({
super.key,
required this.stream,
required this.initialData,
required this.builder,
});