# `Yex.UndoManager.StackClearedEvent`
[🔗](https://github.com/satoren/y_ex/blob/main/lib/undo_manager.ex#L46)

`Yex.UndoManager.clear/1` emptied the stacks. Delivered by `Yex.UndoManager.observe/2`
only when at least one stack held items.

Each flag is `true` when that stack held items before the clear.

# `t`

```elixir
@type t() :: %Yex.UndoManager.StackClearedEvent{
  redo_stack_cleared: boolean(),
  undo_stack_cleared: boolean()
}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
