apply method

  1. @override
Delta apply(
  1. Delta document,
  2. int index,
  3. String text
)
override

Applies heuristic rule to an insert operation on a document and returns resulting Delta.

Implementation

@override
Delta apply(Delta document, int index, String text) {
  return Delta()
    ..retain(index)
    ..insert(text);
}