applyTextCommandResult method

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

Applies an offset-based editor-core command result.

Implementation

void applyTextCommandResult(
  TextCommandResult result, {
  bool pushHistoryBoundary = true,
}) {
  final before = _TextAreaControllerSnapshot.capture(_model);
  _model.applyTextCommandResult(
    result,
    pushHistoryBoundary: pushHistoryBoundary,
  );
  if (!before.matches(_model)) {
    notifyListeners();
  }
}