From b55a5a22614b7eb47145914ca05ec5588e58d703 Mon Sep 17 00:00:00 2001 From: Ellet Date: Tue, 14 Nov 2023 03:25:20 +0300 Subject: [PATCH] Fix tests --- lib/src/models/documents/history.dart | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/lib/src/models/documents/history.dart b/lib/src/models/documents/history.dart index 8baf0616..638855f9 100644 --- a/lib/src/models/documents/history.dart +++ b/lib/src/models/documents/history.dart @@ -1,5 +1,3 @@ -import 'package:meta/meta.dart' show immutable; - import '../quill_delta.dart'; import '../structs/doc_change.dart'; import '../structs/history_changed.dart'; @@ -14,7 +12,7 @@ class History { this.lastRecorded = 0, }); - final HistoryStack stack = const HistoryStack.empty(); + HistoryStack stack = HistoryStack.empty(); bool get hasUndo => stack.undo.isNotEmpty; @@ -121,14 +119,13 @@ class History { } } -@immutable class HistoryStack { - const HistoryStack.empty() - : undo = const [], - redo = const []; + HistoryStack.empty() + : undo = [], + redo = []; - final List undo; - final List redo; + List undo; + List redo; void clear() { undo.clear();