toggle menu
hooks2
common
switch theme
search in API
hooks2
/
xyz.junerver.compose.hooks
/
UndoHolder
Undo
Holder
@
Stable
data
class
UndoHolder
<
T
>
(
val
undoState
:
State
<
UndoState
<
T
>
>
,
val
setValue
:
SetValueFn
<
T
>
,
val
resetValue
:
ResetValueFn
<
T
>
,
val
undo
:
UndoFn
,
val
redo
:
RedoFn
,
val
canUndo
:
CanUndo
,
val
canRedo
:
CanRedo
)
Members
Constructors
Undo
Holder
Link copied to clipboard
constructor
(
undoState
:
State
<
UndoState
<
T
>
>
,
setValue
:
SetValueFn
<
T
>
,
resetValue
:
ResetValueFn
<
T
>
,
undo
:
UndoFn
,
redo
:
RedoFn
,
canUndo
:
CanUndo
,
canRedo
:
CanRedo
)
Properties
can
Redo
Link copied to clipboard
val
canRedo
:
CanRedo
can
Undo
Link copied to clipboard
val
canUndo
:
CanUndo
redo
Link copied to clipboard
val
redo
:
RedoFn
reset
Value
Link copied to clipboard
val
resetValue
:
ResetValueFn
<
T
>
set
Value
Link copied to clipboard
val
setValue
:
SetValueFn
<
T
>
undo
Link copied to clipboard
val
undo
:
UndoFn
undo
State
Link copied to clipboard
val
undoState
:
State
<
UndoState
<
T
>
>