apply method

  1. @override
void apply(
  1. FluentDocument document
)
override

Apply this delta (redo). Replaces affected nodes with their post-mutation state and restores the post-mutation cursor.

Implementation

@override
void apply(FluentDocument document) {
  _replaceNodes(document, changes.map((c) => (c.index, c.newJson)));
  newCursor.restore(document);
}