From a2de79ab49b8b9b3b68a88889ac971d01641d0ef Mon Sep 17 00:00:00 2001 From: Xin Yao Date: Fri, 26 Feb 2021 00:48:56 -0800 Subject: [PATCH] Fix quill_delta next op --- lib/models/quill_delta.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/models/quill_delta.dart b/lib/models/quill_delta.dart index 40a4998b..3bbda2eb 100644 --- a/lib/models/quill_delta.dart +++ b/lib/models/quill_delta.dart @@ -639,7 +639,7 @@ class DeltaIterator { /// /// Optional [length] specifies maximum length of operation to return. Note /// that actual length of returned operation may be less than specified value. - Operation next([num length = double.infinity]) { + Operation next([int length = 4294967296]) { assert(length != null); if (_modificationCount != delta._modificationCount) {