@@ -6,6 +6,11 @@ import 'leaf.dart';
66import 'line.dart' ;
77import 'node.dart' ;
88
9+ @Deprecated ('Please use QuillContainer instead' )
10+
11+ /// For backward compatibility
12+ abstract base class Container <T extends Node ?> extends QuillContainer <T > {}
13+
914/// Container can accommodate other nodes.
1015///
1116/// Delegates insert, retain and delete operations to children nodes. For each
@@ -14,7 +19,7 @@ import 'node.dart';
1419///
1520/// Most of the operation handling logic is implemented by [Line]
1621/// and [QuillText] .
17- abstract base class Container <T extends Node ?> extends Node {
22+ abstract base class QuillContainer <T extends Node ?> extends Node {
1823 final LinkedList <Node > _children = LinkedList <Node >();
1924
2025 /// List of children.
@@ -64,7 +69,7 @@ abstract base class Container<T extends Node?> extends Node {
6469 }
6570
6671 /// Moves children of this node to [newParent] .
67- void moveChildToNewParent (Container ? newParent) {
72+ void moveChildToNewParent (QuillContainer ? newParent) {
6873 if (isEmpty) {
6974 return ;
7075 }
@@ -154,7 +159,7 @@ abstract base class Container<T extends Node?> extends Node {
154159 String toString () => _children.join ('\n ' );
155160}
156161
157- /// Result of a child query in a [Container ] .
162+ /// Result of a child query in a [QuillContainer ] .
158163class ChildQuery {
159164 ChildQuery (this .node, this .offset);
160165
@@ -163,7 +168,7 @@ class ChildQuery {
163168
164169 /// Starting offset within the child [node] which points at the same
165170 /// character in the document as the original offset passed to
166- /// [Container .queryChild] method.
171+ /// [QuillContainer .queryChild] method.
167172 final int offset;
168173
169174 /// Returns `true` if there is no child node found, e.g. [node] is `null` .
0 commit comments