FormatEdit.delete constructor

FormatEdit.delete(
  1. int from,
  2. int to
)

Create a delete edit (text removed, nothing inserted).

Implementation

factory FormatEdit.delete(int from, int to) {
  return FormatEdit(from: from, to: to, newText: '');
}