Skip to content

Instantly share code, notes, and snippets.

@joost-klitsie
joost-klitsie / RememberViewModelStoreOwner.kt
Last active October 25, 2024 16:18
rememberViewModelStoreOwner example implementation
import androidx.compose.runtime.*
import androidx.compose.ui.platform.LocalLifecycleOwner
import androidx.lifecycle.*
import androidx.lifecycle.viewmodel.compose.LocalViewModelStoreOwner
import androidx.lifecycle.viewmodel.compose.viewModel
import kotlinx.coroutines.*
import kotlinx.coroutines.flow.*
@Composable
fun rememberViewModelStoreOwner(
fun HtmlTag.Builder.addAttribute(attribute: Pair<String, String>) {
attributes = attributes.plus(attribute)
}
fun HtmlTag.Builder.addChild(child: HtmlElement) {
children = children.plus(child)
}
public static final void printText(@NotNull SimpleClass $this$printText) {
Intrinsics.checkNotNullParameter($this$printText, "$this$printText");
String var1 = $this$printText.getText();
System.out.println(var1);
}