Skip to content

Instantly share code, notes, and snippets.

@pavan5208
Last active July 14, 2021 06:42
Show Gist options
  • Save pavan5208/ff7ceab670cc43bbd56cf69d08d9e4c6 to your computer and use it in GitHub Desktop.
Save pavan5208/ff7ceab670cc43bbd56cf69d08d9e4c6 to your computer and use it in GitHub Desktop.
override suspend fun getUserLoggedInState(): Flow<Boolean> {
return protoDataStore.data.map { protoBuilder ->
protoBuilder.isLoggedIn
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment