UndoHistory<T> constructor

const UndoHistory<T>({
  1. Key? key,
  2. bool shouldChangeUndoStack(
    1. T? oldValue,
    2. T newValue
    )?,
  3. required ValueNotifier<T> value,
  4. required void onTriggered(
    1. T value
    ),
  5. required FocusNode focusNode,
  6. T undoStackModifier(
    1. T value
    )?,
  7. UndoHistoryController? controller,
  8. required Widget child,
})

Creates an instance of UndoHistory.

Implementation

const UndoHistory({
  super.key,
  this.shouldChangeUndoStack,
  required this.value,
  required this.onTriggered,
  required this.focusNode,
  this.undoStackModifier,
  this.controller,
  required this.child,
});