applyTextCursorCommandResult method

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

Applies an offset-cursor editor-core command result.

Implementation

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