Package ru.surf.core.extension

Functions

EmitByStatus
Link copied to clipboard
@Composable
fun OnBackPressedDispatcher.EmitByStatus(status: Boolean, emit: () -> Unit)

Listen status for enable OnBackPressedCallback

parseColor
Link copied to clipboard
fun String.parseColor(): Color

Parse string color to Color

withTransaction
Link copied to clipboard
suspend fun <T> IAppDatabase.withTransaction(body: suspend T.() -> Unit)

Extensions for easy transaction