LocalSecondary class
Contains methods to execute verb on local secondary storage using executeVerb
Set AtClientPreference.isLocalStoreRequired to true and other preferences that your app needs.
Delete and Update commands will be synced to the server by SyncManager
based on SyncStrategy.
Constructors
- LocalSecondary(String atSign, AtClientPreference? preference)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- keyStore ↔ SecondaryKeyStore?
-
Local keystore used to store data for the current atSign.
getter/setter pair
- logger ↔ AtSignLogger
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
executeVerb(
VerbBuilder builder, {bool? sync}) → Future< String?> -
Executes a verb builder on the local secondary. For update and delete operation, if
sync
is set to true or if SyncStrategy is SyncStrategy.IMMEDIATE then data is synced from local to remote. ifsync
is set to false, no sync operation is done. -
getEncryptionPrivateKey(
) → Future< String?> -
getEncryptionPublicKey(
String atSign) → Future< String?> -
getEncryptionSelfKey(
) → Future< String?> -
getPrivateKey(
) → Future< String?> -
getPublicKey(
) → Future< String?> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
putValue(
String key, String value) → Future< bool> -
Returns
true
on successfully storing the values into local secondary. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited