Document class
Constructors
-
Document({required String blockId, required SerializerStrategy serializer, required WsChannel ws, CryptoStrategy? crypto, CacheStrategy? cache, SecretKey? secretKey, SmartCache? smartCache, bool local = false, void onMutate()?, Future<void> onSet(Map<String, dynamic>)?})
-
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
-
delete()
→ Future<void>
-
Deletes from local cache. Non-local collections sync the deletion.
-
get({bool skipCache = false})
→ Future<Map<String, dynamic>?>
-
Reads data from local cache. Non-local collections fall back to server.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
set(Map<String, dynamic> data)
→ Future<bool>
-
Writes data to local cache. Non-local collections sync to server.
-
toString()
→ String
-
A string representation of this object.
inherited