diff --git a/lib/src/models/quill_delta.dart b/lib/src/models/quill_delta.dart index 486e0b1a..a9babf60 100644 --- a/lib/src/models/quill_delta.dart +++ b/lib/src/models/quill_delta.dart @@ -190,6 +190,10 @@ class Delta { factory Delta.from(Delta other) => Delta._(List.from(other._operations)); + /// Creates new [Delta] from a List of Operation + factory Delta.fromOperations(List operations) => + Delta._(operations.toList()); + // Placeholder char for embed in diff() static final String _kNullCharacter = String.fromCharCode(0);