getJetpacks
Retrieves a list of all jetpacks.
Return
A Flow emitting a list of Jetpack objects.
Samples
// Request work when constructing the Flow, even if it is never collected.
syncManager.requestSync()
return flow {
val userId = preferencesDataSource.getUserIdOrThrow()
val jetpacks = localDataSource.getJetpacks(userId).map { it.mapToJetpacks() }
emitAll(jetpacks)
}Content copied to clipboard