FirestoreRepo<T> class

Constructors

FirestoreRepo({List<RemoteRepoPath>? paths})

Properties

firestore → FirebaseFirestore
final
hashCode int
The hash code for this object.
no setterinherited
paths List<RemoteRepoPath>?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add<T>(JsonObject dto) Future<Result<String>>
override
addById<T>(JsonObject dto) Future<Result<T>>
override
callFunction({required String functionName, required Map<String, dynamic>? data, int durationSeconds = 30}) Future<Result>
override
delete(IDs ids) → dynamic
override
deleteById(String id) Future<Result>
fromJson(FromJsonFunc fromJsonFunc) → RemoteRepo
override
get<T>(IDs ids) Future<Result<T>>
override
getAll<T>({int? limit, String? orderByField, bool descending = false, Object? field, bool? isEqualTo, bool? isNotEqualTo, Object? isLessThan, Object? isLessThanOrEqualTo, Object? isGreaterThan, Object? isGreaterThanOrEqualTo, Object? arrayContains, List<Object?>? arrayContainsAny, List<Object?>? whereIn, List<Object?>? whereNotIn, bool? isNull, Query<Object?>? query}) Future<Result<List<T>>>
override
getIn<T>({required List list, required dynamic fieldName}) Future<Result<List<T>>>
override
getInById<T>({required List list}) Future<Result<List<T>>>
override
init() Future
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
ofPath(List<RemoteRepoPath> path) → RemoteRepo
override
ofTable(String tableName) → RemoteRepo
override
stream(CollectionReference<Object?> ref) Stream<QuerySnapshot<Object?>>
toString() String
A string representation of this object.
inherited
update<T>(JsonObject dto) Future<Result<T>>
override

Operators

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