HiveVaultStore<T extends BoxBase<Map> > class
The Hive vault store
- Inheritance
- Implementers
Constructors
-
HiveVaultStore(HiveAdapter<
T> adapter, {StoreCodec? codec}) - Builds a HiveVaultStore.
Properties
- codec → StoreCodec
-
The store codec to use
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clear(
String name) → Future< void> -
Clears a partition
inherited
-
containsKey(
String name, String key) → Future< bool> -
Checks if the partition contains a value indexed by
key
inherited -
create(
String name, {dynamic fromEncodable(Map< String, dynamic> )?}) → Future<void> -
Creates a partition
inherited
-
decodeBinaryValue(
Uint8List bytes, dynamic fromEncodable(Map< String, dynamic> )?) → dynamic -
Returns a value decoded from the provided binary value
inherited
-
decoder(
String name) → dynamic Function(Map< String, dynamic> )? -
Gets the partition
fromEncodable
functioninherited -
decodeValue(
dynamic value, dynamic fromEncodable(Map< String, dynamic> )?, {ValueProcessor processor = ValueProcessor.none, List<int> process(dynamic)?}) → dynamic -
Returns a value decoded from the provided value
inherited
-
delete(
String name) → Future< void> -
Deletes a partition
inherited
-
deleteAll(
) → Future< void> -
Deletes all partitions
inherited
-
encodeValue(
dynamic value) → Uint8List -
Encodes a value into a list of bytes
inherited
-
getEntry(
String name, String key) → Future< VaultEntry?> -
Returns the partition entry specified by
key
.inherited -
getInfo(
String name, String key) → Future< VaultInfo?> -
Returns the info for the specified
key
in a partition.inherited -
getInfos(
String name, Iterable< String> keys) → Future<Iterable< VaultInfo?> > -
Returns a Iterable over all the non nullable infos in a partition
inherited
-
infos(
String name) → Future< Iterable< VaultInfo> > -
Returns a Iterable over all the infos in the partition.
inherited
-
keys(
String name) → Future< Iterable< String> > -
Returns a Iterable over all the keys in the partition
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
putEntry(
String name, String key, VaultEntry entry) → Future< void> -
Puts an entry identified by
key
on a partition. The value is overriden if already exists or added if it does not exists.inherited -
remove(
String name, String key) → Future< void> -
Removes the partition entry by
key
.inherited -
setInfo(
String name, String key, VaultInfo info) → Future< void> -
Sets the partition info indexed by
key
.inherited -
size(
String name) → Future< int> -
The number of entries in the partition
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
values(
String name) → Future< Iterable< VaultEntry> > -
Returns a Iterable over all entries in a partition
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited