apply method
Applies heuristic rule to an insert operation on a document
and returns
resulting Delta
.
Implementation
@override
Delta apply(Delta document, int index, Object data) {
return Delta()
..retain(index)
..insert(data);
}
Applies heuristic rule to an insert operation on a document
and returns
resulting Delta
.
@override
Delta apply(Delta document, int index, Object data) {
return Delta()
..retain(index)
..insert(data);
}