applyTextCursorCommandResult method

void applyTextCursorCommandResult(
  1. TextCursorCommandResult result, {
  2. bool pushHistoryBoundary = false,
})

Applies an offset cursor command result to the live document state.

Implementation

void applyTextCursorCommandResult(
  commands.TextCursorCommandResult result, {
  bool pushHistoryBoundary = false,
}) {
  if (pushHistoryBoundary) {
    this.pushHistoryBoundary();
  }
  _applyOffsetCursorCommandResult(result);
  _syncCoreState();
  if (pushHistoryBoundary) {
    this.pushHistoryBoundary();
  }
}