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< ? queryTranslator, String? name})T> , Query<T> > -
Creates a new FirestoreRepository for the specified
cf.CollectionReference
Properties
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