applyTextLineCommandResult method

void applyTextLineCommandResult(
  1. TextLineCommandResult result, {
  2. bool pushHistoryBoundary = false,
})

Applies a line-based command result to the live document state.

Implementation

void applyTextLineCommandResult(
  commands.TextLineCommandResult result, {
  bool pushHistoryBoundary = false,
}) {
  if (pushHistoryBoundary) {
    this.pushHistoryBoundary();
  }
  _applyLineCommandResult(result);
  _syncCoreState();
  if (pushHistoryBoundary) {
    this.pushHistoryBoundary();
  }
}