-
- All Implemented Interfaces:
-
androidx.compose.runtime.MutableState,androidx.compose.runtime.State
public final class MutableSharedState<P extends Object, T extends P> implements MutableState<T>
A MutableState implementation that stores both its current and previous values.
-
-
Field Summary
Fields Modifier and Type Field Description private final PpreviousValueprivate Tvalue
-
Constructor Summary
Constructors Constructor Description MutableSharedState(T value, P previousValue)
-
Method Summary
Modifier and Type Method Description final PgetPreviousValue()TgetValue()UnitsetValue(T value)Tcomponent1()Function1<T, Unit>component2()-
-
Method Detail
-
getPreviousValue
final P getPreviousValue()
-
component1
T component1()
-
component2
Function1<T, Unit> component2()
-
-
-
-