update undo package

This commit is contained in:
2026-01-15 17:28:55 -08:00
parent 92a8c580b6
commit 20d794bbca
165 changed files with 2119 additions and 1230 deletions
+23
View File
@@ -0,0 +1,23 @@
class Change<T> {
Change(
this._oldValue,
this._execute(),
this._undo(T oldValue), {
this.description = '',
});
final String description;
final void Function() _execute;
final T _oldValue;
final void Function(T oldValue) _undo;
void execute() {
_execute();
}
void undo() {
_undo(_oldValue);
}
}