FirestoreService class

Constructors

FirestoreService()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createData({required String collection, required Map<String, dynamic> data, String? id, bool isErrorDialog = true, dynamic onError(String? message)?}) Future<bool>
deleteData({required String collection, required String id, FileModel? photo, bool isErrorDialog = true, dynamic onError(String? message)?}) Future<void>
getData({required String collection, String? ownerUID, bool isErrorDialog = true, dynamic onError(String? message)?}) Future<List<QueryDocumentSnapshot<Object?>>>
getDetail({required String collection, required String id, bool isErrorDialog = true, dynamic onError(String? message)?}) Future<DocumentSnapshot<Object?>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
searchData({required String collection, String? ownerUID, required String search, bool isErrorDialog = true, dynamic onError(String? message)?}) Future<List<QueryDocumentSnapshot<Object?>>>
streamData({required String collection, String? collectionChild, String? idChild, bool isErrorDialog = true, dynamic onError(String? message)?}) Stream<QuerySnapshot<Object?>>
streamDetail({required String collection, String? collectionChild, required String id, String? idChild, Map<String, dynamic>? data, bool isErrorDialog = true, dynamic onError(String? message)?}) Stream<DocumentSnapshot<Object?>>
toString() String
A string representation of this object.
inherited
updateData({required String collection, required String? id, required Map<String, dynamic> data, bool isErrorDialog = true, void onError(FirebaseException firebaseException)?}) Future<bool>

Operators

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