ModelStreamSingleBuilder<M extends FirestoreModel<M> > constructor
const
ModelStreamSingleBuilder<M extends FirestoreModel<M> > ({
- Key? key,
- AsyncWidgetBuilder<
M?> ? builder, - Query<
Object?> query(- Query<
Object?> query
- Query<
- String? docId,
- FirestoreModel<
Model> ? parentModel, - M? initialData,
- LoadingWidget? onLoading,
- ErrorWidget? onError,
- SuccessWidget<
M> ? onSuccess, - EmptyWidget? onEmpty,
- dynamic onChange(
- 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);