StreamFirebaseDataSource<T extends BaseEntityDataModel> constructor

StreamFirebaseDataSource<T extends BaseEntityDataModel>({
  1. required String path,
  2. T builder(
    1. Map<String, dynamic>? jsondata,
    2. String docId
    )?,
})

Creates a new instance of StreamFirebaseDataSource.

The path parameter specifies the Firestore collection path. The builder parameter is a function to build the data model from JSON.

Implementation

StreamFirebaseDataSource({
  required this.path,
    this.builder,
});