Store<I extends Info, E extends Entry<I> > class
abstract
Store definition
- Implementers
- Available Extensions
Constructors
- Store()
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
-
clear(
String name) → Future< void> - Clears a partition
-
containsKey(
String name, String key) → Future< bool> -
Checks if the partition contains a value indexed by
key
-
create(
String name, {dynamic fromEncodable(Map< String, dynamic> )?}) → Future<void> - Creates a partition
-
delete(
String name) → Future< void> - Deletes a partition
-
deleteAll(
) → Future< void> - Deletes all partitions
-
getEntry(
String name, String key) → Future< E?> -
Returns the partition entry specified by
key
. -
getInfo(
String name, String key) → Future< I?> -
Returns the info for the specified
key
in a partition. -
getInfos(
String name, Iterable< String> keys) → Future<Iterable< I?> > -
Returns a
Iterable
over all the non nullable infos in a partition -
infos(
String name) → Future< Iterable< I> > -
Returns a
Iterable
over all the infos in the partition. -
keys(
String name) → Future< Iterable< String> > -
Returns a
Iterable
over all the keys in the partition -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
putEntry(
String name, String key, E 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. -
remove(
String name, String key) → Future< void> -
Removes the partition entry by
key
. -
setInfo(
String name, String key, I info) → Future< void> -
Sets the partition info indexed by
key
. -
size(
String name) → Future< int> - The number of entries in the partition
-
toString(
) → String -
A string representation of this object.
inherited
-
values(
String name) → Future< Iterable< E> > -
Returns a
Iterable
over all entries in a partition
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited