FirestoreDataSource class

Implemented types

Constructors

FirestoreDataSource(FirestoreParser<BaseModel> parser, FirebaseFirestore db)

Properties

db → FirebaseFirestore
final
hashCode int
The hash code for this object.
no setterinherited
parser FirestoreParser<BaseModel>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addDocToCollection<Model extends BaseModel>(String path, BaseModel data) Future<String>
override
collectionPath(List<String> pathParam) → CollectionReference<Map<String, dynamic>>
delete(String path) → dynamic
override
getCollectionStream<Model extends BaseModel>(String path, {List<QueryType>? where, Map<String, bool>? orderby, int? limit}) Stream<List<Model>>
override
getCollectionwithParams<Model extends BaseModel>(String path, {List<QueryType>? where, Map<String, bool>? orderby, int? limit, String? startAfterID}) Future<List<Model>>
override
getSingleById<Model extends BaseModel>(String path) Future<Model>
override
getStreamByID<Model extends BaseModel>(String path) Stream<Model>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
queryConstruction(Query<Object?> query, {List<QueryType>? where, Map<String, bool>? orderby, int? limit, DocumentSnapshot<Object?>? startAfter}) → Query<Object?>
toString() String
A string representation of this object.
inherited
update(String path, BaseModel data) Future<void>
override

Operators

operator ==(Object other) bool
The equality operator.
inherited