ModelStreamSingleBuilder<M extends FirestoreModel<M>> constructor

const ModelStreamSingleBuilder<M extends FirestoreModel<M>>({
  1. Key? key,
  2. AsyncWidgetBuilder<M?>? builder,
  3. Query<Object?> query(
    1. Query<Object?> query
    )?,
  4. String? docId,
  5. FirestoreModel<Model>? parentModel,
  6. M? initialData,
  7. LoadingWidget? onLoading,
  8. ErrorWidget? onError,
  9. SuccessWidget<M>? onSuccess,
  10. EmptyWidget? onEmpty,
  11. dynamic onChange(
    1. M? dataChnage
    )?,
})

Implementation

const ModelStreamSingleBuilder(
    {Key? key,
    this.builder,
    this.query,
    this.docId,
    this.parentModel,
    this.initialData,
    this.onLoading,
    this.onError,
    this.onSuccess,
    this.onEmpty,
    this.onChange})
    : super(key: key);