commonMain.com.paoapps.fifi.model.datacontainer.DataContainer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fifi-framework Show documentation
Show all versions of fifi-framework Show documentation
Kotlin Multiplatform Mobile framework for optimal code sharing between iOS and Android.
package com.paoapps.fifi.model.datacontainer
import kotlinx.coroutines.flow.Flow
interface DataContainer {
var data: T?
val dataFlow: Flow
var json: String?
fun updateJson(json: String?, deleteWhenInvalid: Boolean)
}
inline fun DataContainer.updateData(update: (T) -> T) {
data = data?.let(update)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy