Updates the SharedPreferencesStateFlow.value atomically using the specified function of its value.
function may be evaluated multiple times, if value is being concurrently updated.
update will also call put.
0.5.6