From a6b94f6d5ee1a8affba63959ac3ae5924b58f78b Mon Sep 17 00:00:00 2001 From: Cierra_Runis <2864283875@qq.com> Date: Sun, 21 Jan 2024 23:33:39 +0800 Subject: [PATCH] Refactor the type of `Delta().toJson()` (#1694) --- dart_quill_delta/lib/src/delta/delta.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dart_quill_delta/lib/src/delta/delta.dart b/dart_quill_delta/lib/src/delta/delta.dart index cb3a60be..95ee0f87 100644 --- a/dart_quill_delta/lib/src/delta/delta.dart +++ b/dart_quill_delta/lib/src/delta/delta.dart @@ -122,7 +122,8 @@ class Delta { List toList() => List.from(operations); /// Returns JSON-serializable version of this delta. - List toJson() => toList().map((operation) => operation.toJson()).toList(); + List> toJson() => + toList().map((operation) => operation.toJson()).toList(); /// Returns `true` if this delta is empty. bool get isEmpty => operations.isEmpty;