Collects the the value of key as a state.
Author
Arnau Mora
Since
20220829
Return
An state that gets updated with new values if set to the preference.
See also
Parameters
The preferences key to observe.
The value to return if no value is stored at key, and before the stored value is fetched.