property

fun <OWNER, T : Any> KeyValueStorage.property(key: KeyValueStorage.Key<T>): ReadWriteProperty<OWNER, T?>
fun <OWNER, T : Any> KeyValueStorage.property(key: KeyValueStorage.Key<T>, defaultValue: T): ReadWriteProperty<OWNER, T>

A property delegate for the given key. Behaves as using the KeyValueStorage.get and KeyValueStorage.set methods.