QueryListener<T> constructor

const QueryListener<T>({
  1. Key? key,
  2. required Stream<T> stream,
  3. required T initialData,
  4. required Widget builder(
    1. BuildContext context,
    2. 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,
});