DocumentV0 class
⚠️ THIS FILE HAS BEEN DEPRECATED. ⚠️ THIS FILE HAS BEEN DEPRECATED. ⚠️ THIS FILE HAS BEEN DEPRECATED.
ONLY USE FOR MIGRATION.
Constructors
- DocumentV0({required NodeV0 root})
- DocumentV0.empty()
-
Creates a empty document with a single text node.
factory
-
DocumentV0.fromJson(Map<
String, dynamic> json) -
factory
Properties
Methods
-
delete(
Path path, [int length = 1]) → bool - Deletes the NodeV0s at the given Path.
-
insert(
Path path, Iterable< NodeV0> nodes) → bool - Inserts a NodeV0s at the given Path.
-
nodeAtPath(
Path path) → NodeV0? -
Returns the node at the given
path
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object> -
toString(
) → String -
A string representation of this object.
inherited
-
update(
Path path, Attributes attributes) → bool - Updates the NodeV0 at the given Path
-
updateText(
Path path, Delta delta) → bool - Updates the TextNodeV0 at the given Path
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited