We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c22ace commit c025cccCopy full SHA for c025ccc
invui-kotlin/src/main/kotlin/xyz/xenondevs/invui/dsl/property/ProviderDslProperty.kt
@@ -41,6 +41,7 @@ private class NonMutableMutableProvider<T>(override val identifier: Provider<T>)
41
override fun <R> map(transform: (T) -> R, untransform: (R) -> T) = throwUoe()
42
override fun <R> mapObserved(createObservable: (T, () -> Unit) -> R) = throwUoe()
43
override fun <R> strongMapObserved(createObservable: (T, () -> Unit) -> R) = throwUoe()
44
+ override fun consume(source: Provider<T>) = throwUoe()
45
override fun update(value: DeferredValue<T>, ignore: Set<Provider<*>>) = throwUoe()
46
private fun throwUoe(): Nothing =
47
throw UnsupportedOperationException("This property was changed to a non-mutable provider")
0 commit comments