fromAppend static method

TextEdit fromAppend(
  1. int oldLength,
  2. int newLength
)

Calculates an edit from the "old text is a prefix of new text" (append scenario)

Implementation

static TextEdit fromAppend(int oldLength, int newLength) {
  return TextEdit(oldLength, oldLength, newLength);
}