applyTextLineCommandResult method

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

Applies a line-based editor-core command result.

Implementation

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