UndoHistoryValue constructor

const UndoHistoryValue({
  1. bool canUndo = false,
  2. bool canRedo = false,
})

Creates a value for whether the current undo stack can undo or redo.

The canUndo and canRedo arguments must have a value, but default to false.

Implementation

const UndoHistoryValue({this.canUndo = false, this.canRedo = false});