SembastWebAdapter class

Inheritance

Constructors

SembastWebAdapter(String name, {int? version, OnVersionChangedFunction? onVersionChanged, DatabaseMode? mode, SembastCodec? codec})
Builds a SembastWebAdapter.

Properties

codec → SembastCodec?
finalinherited
hashCode int
The hash code for this object.
no setterinherited
mode → DatabaseMode?
finalinherited
name String
final
onVersionChanged → OnVersionChangedFunction?
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
version int?
finalinherited

Methods

clear(String name) Future<int>
Clears the cache
inherited
count(String name, {Filter? filter}) Future<int>
Counts the number of entries using a optionally provided Filter
inherited
delete(String name) Future<void>
Deletes a named cache from a store or the store itself if a named cache is stored individually
inherited
deleteAll() Future<void>
Deletes the store a if a store is implemented in a way that puts all the named caches in one storage, or stores(s) if multiple storages are used
inherited
exists(String name, String key) Future<bool>
Checks if a entry exists
inherited
find(String name, {Finder? finder}) Future<List<RecordSnapshot<String, Map<String, dynamic>>>>
Finds the list of all RecordSnapshot's according with the provided Finder
inherited
getByKey(String name, String key) Future<Map<String, dynamic>?>
Returns the json map associated with the provided key
inherited
getByKeys(String name, Iterable<String> keys) Future<List<Map<String, dynamic>?>>
Returns the json maps of the provided keys
inherited
keys(String name, {Finder? finder}) Future<List<String>>
Returns all the keys using a optionally provided Finder
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openDatabase() Future<Database>
override
put(String name, String key, Map<String, dynamic> value, {bool? merge}) Future<Map<String, dynamic>>
Adds a value to the store
inherited
remove(String name, String key) Future
Removes a entry by key
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited