StoreMetadata class

Manage custom miscellaneous information tied to a StoreDirectory

Uses a key-value format where both key and value must be String. More advanced requirements should use another package, as this is a basic implementation.

Properties

hashCode int
The hash code for this object.
no setterinherited
read Map<String, String>
Read all the key-value pairs from the store synchronously
no setter
readAsync Future<Map<String, String>>
Read all the key-value pairs from the store asynchronously
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add({required String key, required String value}) → void
Add a new key-value pair to the store synchronously
addAsync({required String key, required String value}) Future<void>
Add a new key-value pair to the store asynchronously
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove({required String key}) → void
Remove a new key-value pair from the store synchronously
removeAsync({required String key}) Future<void>
Remove a new key-value pair from the store asynchronously
reset() → void
Remove all the key-value pairs from the store synchronously
resetAsync() Future<void>
Remove all the key-value pairs from the store asynchronously
toString() String
A string representation of this object.
inherited

Operators

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