DocumentStreamBuilder<T>.refreshable constructor

const DocumentStreamBuilder<T>.refreshable({
  1. Key? key,
  2. required Stream<T?> streamFactory(),
  3. required Widget buildContent(
    1. BuildContext context,
    2. T document
    ),
  4. bool allowRefresh = true,
  5. bool isRoute = false,
  6. Uri? location,
})

Implementation

const DocumentStreamBuilder.refreshable({
  super.key,
  required Stream<T?> Function() this.streamFactory,
  required this.buildContent,
  this.allowRefresh = true,
  this.isRoute = false,
  this.location,
}) : stream = null;