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. UndoHistoryController? controller,
  7. 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.controller,
  required this.child,
});