flow
Creates a cold Flow that emits the current value for key and subsequently emits on every change to that key in this MMKV instance.
Emission is based on the internal addEventListener mechanism provided by the wrapped DelegatedMMKV. The flow sends default when the key does not exist.
Return
A Flow<T?> that observes changes for key.
Parameters
The key to observe.
The value to emit when the key does not exist.
Throws
if the value cannot be decoded as T.
Creates a cold Flow that emits the current value for key and subsequently emits on every change to that key in this MMKV instance.
Emission is based on the internal addEventListener mechanism provided by the wrapped DelegatedMMKV. The flow sends default when the key does not exist.
Return
A Flow<T?> that observes changes for key.
Parameters
The key to observe.
The value's KClass
The value to emit when the key does not exist.
Throws
if the value cannot be decoded as T.