FirestoreDepositAdapter class
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
-
add(String table, String primaryColumn, Map<String, dynamic> data)
→ Future<Map<String, dynamic>>
-
Store data in the backend and return the newly stored data.
-
addAll(String table, String primaryColumn, List<Map<String, dynamic>> data)
→ Future<List<Map<String, dynamic>>>
-
Store multiple items in the backend and return the newly stored data.
-
by(String table, String key, dynamic value)
→ Future<List<Map<String, dynamic>>>
-
Return data that is referenced by the given
key
and the value
.
-
exists(String table, String primaryColumn, String id)
→ Future<bool>
-
Check if given
id
exists in the table
.
-
getById(String table, String primaryColumn, String id)
→ Future<Map<String, dynamic>>
-
Return data that is referenced by the given
Id
in the table
.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
page(String table, {required int limit, required int skip, OrderBy? orderBy})
→ Future<List<Map<String, dynamic>>>
-
Return list of paginated data.
-
remove(String table, String primaryColumn, Map<String, dynamic> data)
→ Future<void>
-
Remove data in the backend.
-
removeAll(String table, String primaryColumn, List<Map<String, dynamic>> data)
→ Future<void>
-
Remove multiple items in the backend.
-
toString()
→ String
-
A string representation of this object.
inherited
-
update(String table, String primaryColumn, Map<String, dynamic> data)
→ Future<Map<String, dynamic>>
-
Update data in the backend and return the newly updated data.
-
updateAll(String table, String primaryColumn, List<Map<String, dynamic>> data)
→ Future<List<Map<String, dynamic>>>
-
Update multiple items in the backend and return the newly updated data.