Skip to content

Instantly share code, notes, and snippets.

Last active Mar 22, 2021
What would you like to do?
/* Copyright 2021 Google LLC.
SPDX-License-Identifier: Apache-2.0 */
suspend fun setShowCompleted(newShowCompleted: Boolean) {
// This will leave the sortOrder value untouched:
context.dataStore.updateData { it.copy(newShowCompleted = showCompleted) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment