Skip to content

Instantly share code, notes, and snippets.

@rohitsat13

rohitsat13/ReadDataStore.kt Secret

Last active Mar 22, 2021
Embed
What would you like to do?
/* Copyright 2021 Google LLC.
SPDX-License-Identifier: Apache-2.0 */
suspend fun getShowCompleted(): Boolean {
context.dataStore.data.first().showCompleted
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment