applyTextCommandResult method

void applyTextCommandResult(
  1. TextCommandResult result, {
  2. bool pushHistoryBoundary = false,
})

Applies an offset-based command result to the live document state.

Implementation

void applyTextCommandResult(
  commands.TextCommandResult result, {
  bool pushHistoryBoundary = false,
}) {
  if (pushHistoryBoundary) {
    this.pushHistoryBoundary();
  }
  _applyOffsetCommandResult(result);
  _syncCoreState();
  if (pushHistoryBoundary) {
    this.pushHistoryBoundary();
  }
}