EncryptedStorage class
Encrypted storage
- Implemented types
- Annotations
-
- @singleton
Constructors
- EncryptedStorage()
- Encrypted storage
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
-
clearAll(
) → Future< void> -
Clear storage: all records
override
-
clearDomain(
[String? domain = defaultDomain]) → Future< void> -
Clear storage: all records in one domain
override
-
delete(
String key, {String domain = defaultDomain}) → Future< void> -
Delete by
key
fromdomain
.override -
deleteDomain(
List< String> keys, {String domain = defaultDomain}) → Future<void> -
Delete by
keys
fromdomain
.override -
get(
String key, {String? defaultValue, String domain = defaultDomain}) → Future< String?> -
Get value by
key
anddomain
. If not found will returndefaultValue
override -
getDomain(
{String domain = defaultDomain}) → Future< Map< String, String> > -
Get key-value pair map from
domain
.override -
getDomainKeys(
{String domain = defaultDomain}) → Future< List< String> > -
Get keys from
domain
override -
init(
[String dbName = _storageFileName]) → Future< void> - Init encrypted storage
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
[String dbName = _storageFileName]) → Future< void> - Reset storage @visibleForTesting
-
set(
String key, String value, {String domain = defaultDomain, bool overwrite = true}) → Future< void> -
Write the key-value pair.
value
will be written for thekey
indomain
. If the pair was already existed it will be overwritten ifoverwrite
is true (by default)override -
setDomain(
Map< String, String> pairs, {String domain = defaultDomain, bool overwrite = true}) → Future<void> -
Write the key-value pair map.
pairs
will be written indomain
. If the pair was already existed it will be overwritten ifoverwrite
is true (by default). Unspecified inpairs
in db will not be altered or deleted.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited