KeyValueServer class abstract

Storage server that handles key-value storage. Key value storage binds a single key to a single value

Implemented types
Implementers

Constructors

KeyValueServer()

Properties

allValues Future<List<Tuple2<ValueWithType, ValueWithType>>>
Gets (reloads if applicable) all values associated with this server Implementations are allowed to set certain large values to 'null' to allow lazy loading using get
no setter
hashCode int
The hash code for this object.
no setterinherited
icon String?
The icon to use for this server. Must be an svg or a base64 encoded png (square, preferably 16x16 or 32x32)
no setterinherited
id String
Unique id for this session
no setterinherited
keyIcons Map<ValueWithType, String?>
Provide an optional icon for the given key. Should be a square icon provided as base64, either PNG: 16x16 or 32x32 or SVG.
no setter
keyOptions Set<ValueWithType>
Restrict the keys to this list of keys. Useful as hints for the UI These values are NOT used to enforce set restrictions
no setter
keySuggestions Set<ValueWithType>
List of suggested key values to show in the UI. Useful as hints for the UI These values are NOT used to enforce set restrictions
no setter
name String
The name of this server, eg: the name of the preference file
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
supportedKeyTypes Set<StorageType>
All the different key types supported by the server
no setter
supportedValueTypes Set<StorageType>
All the different value types supported by the server
no setter
typeForKey Map<ValueWithType, StorageType>
Hint for which keys, which value types is required
no setter

Methods

clear() Future<void>
Clears all key-value pairs
get(ValueWithType key) Future<ValueWithType>
Gets the value for the given key
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(ValueWithType key) Future<void>
Removes the value for the given key
set(ValueWithType key, ValueWithType newValue) Future<void>
Sets the value for the given key
toString() String
A string representation of this object.
inherited

Operators

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