applyTextCursorCommandResult method
void
applyTextCursorCommandResult(
- TextCursorCommandResult result, {
- 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();
}
}