FirestoreRepository<T> class final

An AsyncRepository that uses Firestore as it's backend.

Constructors

FirestoreRepository({required CollectionReference<T> collection, required IdGetter<T, String> idGetter, QueryTranslator<Query<T>, Query<T>>? queryTranslator, String? name})
Creates a new FirestoreRepository for the specified cf.CollectionReference

Properties

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

Methods

delete(String id) Future<void>
get(String id) Future<T?>
insert(T data) Future<void>
list(Query query) Future<PagedResult<T>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pollRecentTransactionResults() List<WriteOperation<T, String>>?
runTransaction<K>(FutureOr<K> callback(RepositoryTransaction<T, String> transaction)) Future<K>
toString() String
A string representation of this object.
inherited
update(String id, Update<T> operation) Future<T>

Operators

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