Applies heuristic rule to an operation on a document and returns resulting Delta.
document
Delta? applyRule(Delta document, int index, {int? len, Object? data, Attribute? attribute});